/* ═══════════════════════════════════════════
   DANYAL ANJUM — Portfolio Stylesheet
   HTML + CSS + Vanilla JS Version
   ═══════════════════════════════════════════ */

/* ─────────────────────────────────────────
   1. CSS VARIABLES — LIGHT MODE (Default)
───────────────────────────────────────── */
:root {
  /* Brand Colors */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.12);
  --primary-border: rgba(59, 130, 246, 0.25);

  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: rgba(249, 115, 22, 0.12);
  --accent-border: rgba(249, 115, 22, 0.25);

  --purple: #8b5cf6;
  --purple-light: rgba(139, 92, 246, 0.12);
  --purple-border: rgba(139, 92, 246, 0.25);

  --success: #22c55e;
  --success-light: rgba(34, 197, 94, 0.12);
  --success-border: rgba(34, 197, 94, 0.25);

  /* Backgrounds — Light */
  --bg-base: #f0f4f8;
  --bg-surface: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-overlay: rgba(0, 0, 0, 0.04);
  --bg-overlay-md: rgba(0, 0, 0, 0.07);

  /* Text — Light */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* Borders — Light */
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-default: rgba(0, 0, 0, 0.11);
  --border-strong: rgba(0, 0, 0, 0.2);

  /* Shadows — Light */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);

  /* Typography */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────
   2. DARK MODE OVERRIDES
───────────────────────────────────────── */
[data-theme="dark"] {
  --bg-base: #080b12;
  --bg-surface: #0d1117;
  --bg-elevated: #161b25;
  --bg-overlay: rgba(255, 255, 255, 0.03);
  --bg-overlay-md: rgba(255, 255, 255, 0.06);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* ─────────────────────────────────────────
   3. RESET & BASE
───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none;
}

/* ─────────────────────────────────────────
   4. SCROLLBAR
───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ─────────────────────────────────────────
   5. SELECTION
───────────────────────────────────────── */
::selection {
  background: var(--primary-light);
  color: var(--primary);
}

/* ─────────────────────────────────────────
   6. FOCUS VISIBLE (Accessibility)
───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─────────────────────────────────────────
   7. SCROLL PROGRESS BAR
───────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--purple),
    var(--accent)
  );
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─────────────────────────────────────────
   8. CONTAINER
───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ─────────────────────────────────────────
   9. UTILITY — GRADIENT TEXT
───────────────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-text-accent {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────
   10. UTILITY — COLOR HELPERS
───────────────────────────────────────── */
.primary-text {
  color: var(--primary);
}
.accent-text {
  color: var(--accent);
}
.success-text {
  color: var(--success);
}
.purple-text {
  color: var(--purple);
}

/* ─────────────────────────────────────────
   11. UTILITY — BADGES
───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}
.badge-accent {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.badge-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success-border);
}

/* ─────────────────────────────────────────
   12. UTILITY — BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-overlay);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.btn-ghost:hover {
  background: var(--bg-overlay-md);
  color: var(--text-primary);
}

/* ─────────────────────────────────────────
   13. UTILITY — PULSE DOT
───────────────────────────────────────── */
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

/* ─────────────────────────────────────────
   14. UTILITY — GRID BACKGROUND
───────────────────────────────────────── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.06) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .grid-bg {
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
}

/* ─────────────────────────────────────────
   15. UTILITY — SECTION LABELS
───────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.accent-label {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.primary-label {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}
.purple-label {
  background: var(--purple-light);
  color: var(--purple);
  border: 1px solid var(--purple-border);
}

/* ─────────────────────────────────────────
   16. UTILITY — SECTION TITLES
───────────────────────────────────────── */
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-header {
  margin-bottom: var(--space-12);
  max-width: 560px;
}

/* ─────────────────────────────────────────
   17. UTILITY — PILLS
───────────────────────────────────────── */
.pill {
  padding: 2px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─────────────────────────────────────────
   18. GSAP INITIAL STATES
───────────────────────────────────────── */
.gsap-fade {
  opacity: 0;
}
.gsap-up {
  opacity: 0;
  transform: translateY(32px);
}
.gsap-left {
  opacity: 0;
  transform: translateX(-32px);
}
.gsap-right {
  opacity: 0;
  transform: translateX(32px);
}

/* ─────────────────────────────────────────
   19. NAVBAR
───────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition:
    background var(--transition-base),
    border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(240, 244, 248, 0.88);
  backdrop-filter: blur(16px);
  border-color: var(--border-subtle);
}

[data-theme="dark"] #navbar.scrolled {
  background: rgba(8, 11, 18, 0.88);
}

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

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-dot {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 900;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition-fast);
  display: inline-block;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-overlay-md);
}
.nav-link.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme Toggle */
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.theme-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Show/hide sun & moon */
.theme-icon-sun {
  display: none;
}
.theme-icon-moon {
  display: block;
}
[data-theme="dark"] .theme-icon-sun {
  display: block;
}
[data-theme="dark"] .theme-icon-moon {
  display: none;
}

/* Hire Me nav */
.nav-hire {
  font-size: 0.875rem;
  padding: 8px 18px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--bg-base);
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  gap: 0.75rem;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
}

.mobile-link {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}
.mobile-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.mobile-hire {
  margin-top: auto;
  justify-content: center;
}

/* Spacer */
.nav-spacer {
  height: 71px;
}

/* ─────────────────────────────────────────
   20. HERO SECTION
───────────────────────────────────────── */
#hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
  min-height: calc(100vh - 71px);
  display: flex;
  flex-direction: column;
}

.hero-orb1 {
  position: absolute;
  top: -100px;
  right: 15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-orb2 {
  position: absolute;
  bottom: -60px;
  left: 20%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-16) 0;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.eyebrow-text {
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.eyebrow-line {
  flex: 1;
  height: 1px;
  background: var(--accent-border);
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2.5px;
  margin-bottom: var(--space-5);
  color: var(--text-primary);
}
.hero-name-text {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.upwork-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--success-light);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: var(--space-5);
}

.typing-row {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#typed-text {
  color: var(--accent);
  font-weight: 700;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 0.75s step-start infinite;
}

@keyframes cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.hero-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: var(--space-8);
}
.hero-desc strong {
  color: var(--text-secondary);
}

.hero-btns {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Hero Right — Service Cards */
.hero-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  transition:
    transform 0.2s,
    border-color var(--transition-base);
}
.hero-card:hover {
  transform: translateX(6px);
  border-color: var(--accent-border);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.hero-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}
.hero-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Stats Bar */
.stats-bar {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  position: relative;
  z-index: 1;
}

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

.stat-item {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}
.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─────────────────────────────────────────
   21. SERVICES SECTION
───────────────────────────────────────── */
#services {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

.services-orb {
  position: absolute;
  top: 50%;
  left: -200px;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

/* GHL Featured Card */
.ghl-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ghl-orb {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.ghl-top-badge {
  margin-bottom: var(--space-6);
}

.ghl-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
}

.ghl-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.ghl-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.ghl-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex: 1;
  list-style: none;
}

.ghl-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.ghl-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.ghl-btns {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Small Service Cards */
.small-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.small-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-base);
}
.small-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.small-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.small-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.primary-icon {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
}
.success-icon {
  background: var(--success-light);
  border: 1px solid var(--success-border);
}
.accent-icon {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
}
.purple-icon {
  background: var(--purple-light);
  border: 1px solid var(--purple-border);
}
.muted-icon {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.small-card-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.small-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.small-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.small-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: auto;
  transition: gap var(--transition-fast);
}
.small-card-link:hover {
  gap: 8px;
}

.primary-link {
  color: var(--primary);
}
.success-link {
  color: var(--success);
}

/* ─────────────────────────────────────────
   PORTFOLIO SECTION — Pinterest Masonry
   Replace old portfolio CSS with this
───────────────────────────────────────── */

#portfolio {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

.portfolio-orb {
  position: absolute;
  top: 20%;
  right: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

/* ── Masonry Grid ── */
.masonry {
  columns: 3;
  column-gap: 20px;
}

/* ── Project Card ── */
.p-card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s,
    box-shadow 0.25s;
  cursor: default;
}

.p-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .p-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Image Area ── */
.p-img {
  position: relative;
  overflow: hidden;
}

.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.p-card:hover .p-img img {
  transform: scale(1.05);
}

.p-card:hover .p-img {
  filter: brightness(1.04);
}

.p-placeholder-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.06) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  pointer-events: none;
}

[data-theme="dark"] .p-placeholder-grid {
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.07) 1px,
    transparent 1px
  );
}

.p-placeholder-icon {
  position: relative;
  z-index: 1;
}

/* Category pill — top right of image */
.p-cat-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  border: 1px solid;
  z-index: 2;
  letter-spacing: 0.2px;
  backdrop-filter: blur(4px);
}

/* ── View Project Button ── */
.p-view-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.p-view-btn:hover {
  color: var(--accent);
}

.p-view-btn-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  background: var(--bg-elevated); /* ← yeh add karo */
}
.p-view-btn:hover .p-view-btn-arrow {
  background: var(--accent);
  border-color: var(--accent);
}
.p-view-btn:hover .p-view-btn-arrow svg {
  stroke: #fff !important;
}
/* ── Card Body ── */
.p-body {
  padding: 18px 20px 20px;
}

.p-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.p-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* Footer — dot + tech stack */
.p-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.p-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.p-tech {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .masonry {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .masonry {
    columns: 1;
  }
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ─────────────────────────────────────────
   23. ABOUT SECTION
───────────────────────────────────────── */
#about {
  padding: var(--space-24) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.about-orb {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-10);
  align-items: start;
}

/* Photo Card */
.photo-card {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.photo-area {
  height: 320px;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  position: relative;
  overflow: hidden;
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Fallback — shows when image fails */
.photo-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: absolute;
  inset: 0;
}

.photo-area.no-photo .photo-img {
  display: none;
}
.photo-area.no-photo .photo-fallback {
  display: flex;
}

.photo-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.photo-name-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
}
.photo-loc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.photo-bar {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.photo-role {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}
.photo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--success-light);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--success);
}

/* Credential Grid */
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.cred-card {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cred-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cred-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.cred-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* About Right */
.about-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.about-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.about-para {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}
.about-para:last-child {
  margin-bottom: 0;
}

/* Skills Card */
.skills-card,
.edu-card {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.card-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  letter-spacing: -0.3px;
}

.skill-group {
  margin-bottom: var(--space-5);
}
.skill-group:last-child {
  margin-bottom: 0;
}

.skill-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-2);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.accent-pill {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.primary-pill {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}
.success-pill {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.sm-pill {
  font-size: 0.625rem;
  padding: 2px 8px;
}

/* Education Card */
.edu-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-4);
}
.edu-item:last-child {
  margin-bottom: 0;
}

.edu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-4) 0;
}

.edu-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.edu-degree {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.edu-school {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.active-badge {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
}

.primary-active {
  background: var(--primary-light);
  color: var(--primary);
}
.accent-active {
  background: var(--accent-light);
  color: var(--accent);
}

.teach-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: var(--space-2);
}

/* ─────────────────────────────────────────
   24. CONTACT SECTION
───────────────────────────────────────── */
#contact {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

.contact-orb1 {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.contact-orb2 {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.contact-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-6);
  align-items: start;
}

/* Hire Card */
.hire-card {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  overflow: hidden;
}

.hire-card-orb {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hire-available {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.hire-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.hire-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hire-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}

.hire-points li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hire-points li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.hire-btns {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hire-upwork {
  justify-content: center;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px var(--space-6);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--success);
  text-decoration: none;
  transition: all var(--transition-base);
  font-family: var(--font);
}
.whatsapp-btn:hover {
  background: rgba(34, 197, 94, 0.18);
  transform: translateY(-2px);
}

.hire-divider {
  height: 1px;
  background: var(--border-subtle);
}

.social-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.social-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-muted); /* ← currentColor ke liye */
  transition: all var(--transition-fast);
  text-decoration: none;
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Form Card */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.form-top-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.form-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-4);
}
.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 10px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-base);
  font-family: var(--font);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-error {
  display: none;
  font-size: 0.875rem;
  color: #ef4444;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-12) 0;
  text-align: center;
}

.success-icon {
  font-size: 3rem;
}
.success-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
}
.success-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-submit {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
  margin-top: var(--space-4);
}

/* ─────────────────────────────────────────
   25. FOOTER
───────────────────────────────────────── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-4);
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--space-5);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   26. RESPONSIVE — TABLET & MOBILE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr !important;
  }
  .about-grid {
    grid-template-columns: 1fr !important;
  }
  .ghl-features {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr !important;
  }
  .hero-cards {
    display: none !important;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  .nav-links {
    display: none !important;
  }
  .nav-hire {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
  .footer-desc {
    max-width: 450px;
  }
}

@media (max-width: 640px) {
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns a,
  .hero-btns button {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--border-subtle) !important;
  }
  .stat-item:nth-last-child(-n + 2) {
    border-bottom: none !important;
  }

  .masonry {
    columns: 1 !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }
  .cred-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-desc {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }
  .section-title {
    letter-spacing: -1px;
  }
}
