/* ==========================================================================
   ATHARVA — PERSONAL PORTFOLIO STYLESHEET
   --------------------------------------------------------------------------
   Vanilla CSS3 • Mobile-First • Accessible • Fast • High Conversion
   Fonts: Bricolage Grotesque (Headings) & Instrument Sans (Body)
   Accent: Electric Lime (#d4ff3a)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Accent: Electric Lime */
  --accent: #d4ff3a;
  --accent-hover: #bceb28;
  --accent-text: #0e0e0c;
  --accent-subtle: rgba(212, 255, 58, 0.12);
  --accent-border: rgba(212, 255, 58, 0.35);

  /* Typography */
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* DARK THEME (Default) */
  --bg-primary: #0e0e0c;
  --bg-secondary: #141412;
  --bg-card: #181815;
  --bg-card-hover: #1f1f1b;
  --bg-input: #121210;
  --border-color: #262624;
  --border-hover: #3a3a36;
  --text-main: #f3f3ee;
  --text-muted: #a1a19a;
  --text-dim: #71716a;
  --glass-header: rgba(14, 14, 12, 0.88);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.65);
  --focus-ring: #d4ff3a;

  /* Custom Cursor Tokens (Dark Mode) */
  --cursor-dot: #d4ff3a;
  --cursor-ring-border: rgba(212, 255, 58, 0.45);
  --cursor-ring-bg: rgba(212, 255, 58, 0.05);
  --cursor-ring-glow: 0 0 24px rgba(212, 255, 58, 0.35);
  --cursor-pill-bg: #d4ff3a;
  --cursor-pill-text: #0e0e0c;

  /* Layout & Spacing */
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --container-max: 1180px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* LIGHT THEME TOKENS */
[data-theme="light"] {
  --bg-primary: #f8f8f5;
  --bg-secondary: #f0f0ea;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5ee;
  --bg-input: #ffffff;
  --border-color: #e2e2da;
  --border-hover: #c8c8bd;
  --text-main: #141412;
  --text-muted: #585850;
  --text-dim: #84847a;
  --glass-header: rgba(248, 248, 245, 0.9);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12);
  --focus-ring: #4d7c0f;
  --accent-text: #0e0e0c;

  /* Custom Cursor Tokens (Light Mode) */
  --cursor-dot: #1e3a0f;
  --cursor-ring-border: rgba(30, 58, 15, 0.55);
  --cursor-ring-bg: rgba(77, 124, 15, 0.08);
  --cursor-ring-glow: 0 0 18px rgba(77, 124, 15, 0.25);
  --cursor-pill-bg: #1e3a0f;
  --cursor-pill-text: #f8f8f5;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Accessible Focus Indicator */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

[data-theme="light"] .section-subtitle {
  color: #4d7c0f;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.title-underline {
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 1.25rem auto 0;
  border-radius: var(--radius-pill);
}

[data-theme="light"] .title-underline {
  background: #4d7c0f;
}

.text-accent {
  color: var(--accent);
}

[data-theme="light"] .text-accent {
  color: #4d7c0f;
}

/* --------------------------------------------------------------------------
   3. BUTTONS & UI PRIMITIVES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 15px rgba(212, 255, 58, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(212, 255, 58, 0.35);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-card);
  border-color: var(--accent);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

[data-theme="light"] .status-indicator-dot {
  background: #4d7c0f;
  box-shadow: 0 0 8px #4d7c0f;
}

/* --------------------------------------------------------------------------
   4. HEADER & NAVBAR
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--glass-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.logo-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--accent);
  color: var(--accent-text);
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
}

.dot-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

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

[data-theme="light"] .nav-link.active::after {
  background: #4d7c0f;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
[data-theme="light"] .theme-toggle .sun-icon { display: none; }
[data-theme="light"] .theme-toggle .moon-icon { display: block; }

.scroll-progress-bar {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

[data-theme="light"] .scroll-progress-bar {
  background: #4d7c0f;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger-btn .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  transition: visibility 0.3s;
}

.mobile-drawer.active {
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.mobile-drawer.active .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.active .drawer-panel {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.drawer-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION & CSS DEVICE FRAMES
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-name-wrap {
  position: relative;
  margin-top: 0.25rem;
}

.hero-name {
  font-size: clamp(3.2rem, 7.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 0.95;
}

.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes letterReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-role {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-badges {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-badge svg {
  color: var(--accent);
}

[data-theme="light"] .hero-badge svg {
  color: #4d7c0f;
}

/* Device Mockup Wrapper */
.device-mockup-wrapper {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

/* Laptop Frame */
.laptop-frame {
  background: #1c1c1c;
  border-radius: 14px 14px 4px 4px;
  padding: 10px 10px 0 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #333;
  position: relative;
}

.laptop-camera {
  width: 5px;
  height: 5px;
  background: #444;
  border-radius: 50%;
  margin: 0 auto 6px;
}

.laptop-screen {
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/10;
}

.laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.laptop-base {
  height: 12px;
  background: #2a2a2a;
  border-radius: 0 0 14px 14px;
  margin: 0 -24px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.laptop-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 4px;
  background: #444;
  border-radius: 0 0 4px 4px;
}

/* Mobile Phone Frame Overlap */
.phone-frame {
  position: absolute;
  bottom: -25px;
  right: -20px;
  width: 135px;
  background: #161616;
  border-radius: 22px;
  padding: 7px;
  border: 2px solid #383838;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
  z-index: 10;
}

.phone-speaker {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  margin: 0 auto 5px;
}

.phone-screen {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9/19;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-demo-pill {
  position: absolute;
  top: -15px;
  right: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-md);
  z-index: 15;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

[data-theme="light"] .live-dot {
  background: #4d7c0f;
}

/* --------------------------------------------------------------------------
   6. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-avatar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dev-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  overflow: hidden;
}

.dev-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  padding: 1.5rem 1rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.dev-quick-specs {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-val {
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.about-bio-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bio-headline {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
}

.bio-paragraph {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}

[data-theme="light"] .stat-number {
  color: #4d7c0f;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.about-skills-sub {
  margin-top: 0.5rem;
}

.skills-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.skills-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
}

.college-perk-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 0.5rem;
}

.perk-icon svg {
  color: var(--accent);
  flex-shrink: 0;
}

[data-theme="light"] .perk-icon svg {
  color: #4d7c0f;
}

.perk-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. PORTFOLIO & FILTERABLE GRID
   -------------------------------------------------------------------------- */
.portfolio-filter-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.filter-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4rem;
  border-radius: var(--radius-pill);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 1.35rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 2px 10px rgba(212, 255, 58, 0.25);
}

[data-theme="light"] .filter-btn.active {
  background: #4d7c0f;
  color: #ffffff;
}

.filter-count {
  font-size: 0.8rem;
  opacity: 0.85;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.project-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb-img {
  transform: scale(1.03);
}

.project-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(14, 14, 12, 0.85);
  backdrop-filter: blur(4px);
  color: var(--accent);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(212, 255, 58, 0.3);
}

[data-theme="light"] .project-category-tag {
  color: #4d7c0f;
  border-color: rgba(77, 124, 15, 0.3);
}

.project-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 1.25rem;
}

.project-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.project-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.project-direct-cta {
  width: 100%;
  padding: 0.65rem;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.project-direct-cta:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.projects-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.projects-empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.projects-empty-state p {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. INSTANT QUOTE ESTIMATOR WIDGET
   -------------------------------------------------------------------------- */
.estimator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.estimator-form-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.estimator-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.estimator-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.choice-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  min-height: 44px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all var(--transition-fast);
}

.choice-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.choice-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
}

.choice-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.choice-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.choice-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.5rem;
}

.price-inr {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.2rem;
}

[data-theme="light"] .choice-price {
  color: #4d7c0f;
}

.choice-grid-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pill-choice-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-choice-btn:hover {
  border-color: var(--accent);
}

.pill-choice-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

[data-theme="light"] .pill-choice-btn.active {
  background: #4d7c0f;
  color: #fff;
  border-color: #4d7c0f;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.addon-check-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.addon-check-label input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.addon-check-label.included {
  opacity: 0.8;
  cursor: default;
}

.estimator-readout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.readout-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.readout-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin: 0.2rem 0;
}

.readout-usd {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 600;
}

.readout-time {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.readout-time strong {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   9. SERVICES & PRICING
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.service-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(212, 255, 58, 0.12);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

[data-theme="light"] .popular-ribbon {
  background: #4d7c0f;
  color: #fff;
}

.service-pricing {
  margin-bottom: 1rem;
}

.price-from {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
}

.price-usd {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.service-features li {
  line-height: 1.4;
}

.pricing-guarantee-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-guarantee-strip strong {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   10. PROCESS TIMELINE & WHY HIRE ME
   -------------------------------------------------------------------------- */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.step-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

[data-theme="light"] .step-badge {
  color: #4d7c0f;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. WHY WORK WITH ME / FREELANCER COMPARISON (MERGED INTO ABOUT)
   -------------------------------------------------------------------------- */
.agency-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.comparison-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.comparison-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. CASE STUDIES (Problem → What I Built → Result)
   -------------------------------------------------------------------------- */
.casestudies-section {
  background: var(--bg-secondary);
}

.casestudies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.casestudy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.casestudy-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.casestudy-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.casestudy-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.casestudy-card:hover .casestudy-thumb img {
  transform: scale(1.04);
}

.casestudy-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(14, 14, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 255, 58, 0.3);
}

.casestudy-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.casestudy-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.casestudy-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.flow-step {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.flow-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

[data-theme="light"] .flow-label {
  color: #4d7c0f;
}

.flow-step.problem .flow-label {
  color: #f87171;
}

.flow-step.result .flow-label {
  color: #34d399;
}

.flow-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.casestudy-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   12. CLIENT REVIEWS & TESTIMONIALS
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-stars {
  color: #facc15;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

[data-theme="light"] .review-tag {
  color: #4d7c0f;
  background: rgba(77, 124, 15, 0.1);
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.review-avatar-text {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.review-client-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.review-client-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.promo-discount-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(212, 255, 58, 0.1);
}

.promo-pill {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.promo-heading {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.promo-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. FAQ ACCORDION (Native <details>)
   -------------------------------------------------------------------------- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--accent-border);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform var(--transition-fast);
}

[data-theme="light"] .faq-question::after {
  color: #4d7c0f;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   13. CONTACT SECTION & ACCESSIBLE FORM
   -------------------------------------------------------------------------- */
.contact-card-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
}

.contact-header-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-title {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
}

.contact-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.channels-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.channels-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.channel-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.channel-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.channel-btn.whatsapp-btn {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
}

.channel-btn.whatsapp-btn:hover {
  background: #25d366;
  color: #fff;
}

.payment-badge-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.upi-icon-badge {
  background: #00baf2;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.payment-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.payment-info strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.contact-form-panel {
  display: flex;
  flex-direction: column;
}

.form-panel-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.form-panel-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group label .req {
  color: var(--accent);
}

[data-theme="light"] .form-group label .req {
  color: #ef4444;
}

.form-group label .opt {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

[data-theme="light"] .form-group input:focus, [data-theme="light"] .form-group select:focus, [data-theme="light"] .form-group textarea:focus {
  border-color: #4d7c0f;
}

.form-error {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.2rem;
}

.form-error.show {
  display: block;
}

.form-submit-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-whatsapp-action {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 0.85rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity var(--transition-fast);
}

.btn-whatsapp-action:hover {
  opacity: 0.9;
}

.btn-email-action {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-email-action:hover {
  border-color: var(--accent);
}

.btn-copy-action {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-copy-action:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.btn-email-action:hover {
  border-color: var(--accent);
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.form-success-banner {
  display: none;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

.form-success-banner.show {
  display: block;
}

/* --------------------------------------------------------------------------
   14. FOOTER & MISC
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 380px;
  margin: 1rem 0;
  line-height: 1.6;
}

.footer-availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-main);
}

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

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

.back-to-top {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  color: var(--text-main);
  border-color: var(--accent);
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-header);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  z-index: 999;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .mobile-sticky-bar {
    display: flex;
  }
}

.sticky-action-btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
}

.sticky-action-btn.primary {
  background: var(--accent);
  color: var(--accent-text);
}

.sticky-action-btn.whatsapp {
  background: #25d366;
  color: #fff;
}

/* --------------------------------------------------------------------------
   15. MODAL DIALOGS & DEVICE SIMULATOR
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

/* Preview Modal Specifics */
.preview-modal-container {
  max-width: 1000px;
  height: 85vh;
}

.preview-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.preview-badge {
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.device-toggles {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.25rem;
}

/* Hide device toggles on touch/narrow screens */
@media (max-width: 768px), (pointer: coarse) {
  .device-toggles {
    display: none !important;
  }
}

.device-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.device-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-external-btn {
  font-size: 0.8rem;
}

.iframe-viewport-wrapper {
  flex: 1;
  background: #090a0f;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 1rem;
}

.iframe-stage {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: width 0.3s ease, height 0.3s ease;
}

.iframe-stage iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Responsive Viewport Sizes for Simulator */
.iframe-stage.desktop-view {
  width: 100%;
  height: 100%;
}

.iframe-stage.tablet-view {
  width: 768px;
  height: 100%;
}

.iframe-stage.mobile-view {
  width: 375px;
  height: 100%;
}

.preview-fallback-bar {
  padding: 0.85rem 1.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

[data-theme="light"] .text-link {
  color: #4d7c0f;
}

/* Details Modal Specifics */
.details-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.details-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
}

.details-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meta-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.details-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.details-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.details-features-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.details-features-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 800;
}

[data-theme="light"] .details-features-list li::before {
  color: #4d7c0f;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   16. SCROLL REVEALS & ACCESSIBILITY (prefers-reduced-motion)
   -------------------------------------------------------------------------- */
.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* PREFERS-REDUCED-MOTION: DISABLE ANIMATIONS & REVEALS */
@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;
  }
  .reveal-fade, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-letter {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-layout-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content-col {
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badges {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-card-wrapper {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.75rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
  .nav-links {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .form-submit-row {
    grid-template-columns: 1fr;
  }
  .estimator-readout {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .modal-container {
    max-height: 95vh;
  }
  body {
    padding-bottom: 60px; /* Space for mobile sticky bottom bar */
  }
}

/* --------------------------------------------------------------------------
   18. UNIQUE DESKTOP MAGNETIC PRECISION CURSOR
   -------------------------------------------------------------------------- */
/* Hidden by default on touch screens, mobile devices, and reduced motion */
.custom-cursor {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* Hide standard cursor when custom cursor is active, but preserve standard text cursor for inputs */
  html.has-custom-cursor,
  html.has-custom-cursor body,
  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor [role="button"],
  html.has-custom-cursor .project-card,
  html.has-custom-cursor .chip,
  html.has-custom-cursor summary,
  html.has-custom-cursor .filter-btn,
  html.has-custom-cursor .tab-btn,
  html.has-custom-cursor .theme-toggle {
    cursor: none !important;
  }

  html.has-custom-cursor input,
  html.has-custom-cursor textarea,
  html.has-custom-cursor select,
  html.has-custom-cursor [contenteditable="true"] {
    cursor: text !important;
  }

  .custom-cursor {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 999999;
  }

  /* Center pinpoint pip - tracks instantly with zero latency */
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--cursor-dot);
    box-shadow: 0 0 10px var(--cursor-dot);
    pointer-events: none;
    z-index: 1000000;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 0.25s ease, transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
    will-change: transform;
  }

  /* Outer magnetic follower halo - tracks with fluid physics lerp */
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--cursor-ring-border);
    background-color: var(--cursor-ring-bg);
    pointer-events: none;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                opacity 0.25s ease;
    will-change: transform, width, height;
  }

  /* Dynamic contextual typography label inside the capsule ring */
  .cursor-label {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cursor-pill-text);
    opacity: 0;
    transform: scale(0.65);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    padding: 0 8px;
  }

  /* Active state when pointer is detected inside viewport */
  .custom-cursor.is-active .cursor-dot,
  .custom-cursor.is-active .cursor-ring {
    opacity: 1;
  }

  /* Interactive hover state (links, buttons, switches) */
  .cursor-ring.is-interactive {
    width: 52px;
    height: 52px;
    border-color: var(--cursor-dot);
    background-color: rgba(212, 255, 58, 0.12);
    box-shadow: var(--cursor-ring-glow);
  }
  [data-theme="light"] .cursor-ring.is-interactive {
    background-color: rgba(77, 124, 15, 0.12);
  }
  .cursor-dot.is-interactive {
    transform: translate3d(-50%, -50%, 0) scale(0.65);
  }

  /* Card / Project Showcase state (morphs to capsule pill with label) */
  .cursor-ring.is-card {
    width: 88px;
    height: 36px;
    border-radius: var(--radius-pill);
    background-color: var(--cursor-pill-bg);
    border-color: var(--cursor-pill-bg);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), var(--cursor-ring-glow);
  }
  .cursor-ring.is-card .cursor-label {
    opacity: 1;
    transform: scale(1);
  }
  .cursor-dot.is-card {
    opacity: 0 !important;
    transform: translate3d(-50%, -50%, 0) scale(0);
  }

  /* Form & text editing state - hides custom cursor to let native I-beam cursor work uninhibited */
  .cursor-ring.is-text,
  .cursor-dot.is-text {
    opacity: 0 !important;
  }

  /* Tactile click impulse */
  .cursor-ring.is-clicking {
    transform: translate3d(-50%, -50%, 0) scale(0.82);
    border-width: 2.5px;
    box-shadow: var(--cursor-ring-glow);
  }
  .cursor-dot.is-clicking {
    transform: translate3d(-50%, -50%, 0) scale(1.4);
  }

  /* Idle relaxation */
  .cursor-ring.is-idle {
    opacity: 0.35;
    border-style: dashed;
  }
}

