/* ==========================================================================
   DEVELOPER PORTFOLIO - ABDULLAH ABDULRAHMAN
   Ultra-Modern App-Style View Switching System (Smart Conditional Scroll)
   Projects Page Design Replicated from User Reference Screenshot
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   1. Theme Variables & Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg-main: #f4efe6;
  --bg-surface: #fffaf1;
  --bg-card: #fffaf1;
  --bg-card-hover: #f9e4d2;
  --bg-nav: rgba(244, 239, 230, 0.96);
  --bg-pill: rgba(190, 67, 54, 0.08);

  --text-main: #292522;
  --text-muted: #756c63;
  --text-dim: #a39a91;

  --accent-purple: #be4336;
  --accent-violet: #9f342d;
  --accent-magenta: #dc684e;
  --accent-cyan: #6e877c;

  --border-color: #ded3c5;
  --border-highlight: #be8b72;

  --gradient-purple: #be4336;
  --gradient-card: none;

  --shadow-sm: 0 3px 8px rgba(66, 47, 34, 0.08);
  --shadow-md: 0 8px 20px rgba(66, 47, 34, 0.12);
  --shadow-lg: 0 16px 35px rgba(66, 47, 34, 0.16);
  --glow-purple: none;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-body: 'Inter', 'Noto Sans Arabic', system-ui, sans-serif;
  --font-heading: 'Outfit', 'Noto Sans Arabic', system-ui, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .hero-tagline,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .about-text {
  text-align: right;
}

/* --------------------------------------------------------------------------
   2. Base & Scroll Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden !important;
  position: fixed;
  top: 0;
  left: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

/* Ambient Canvas Background */
#ambientCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
}

/* Ambient Radial Glows */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 107, 60, 0.06) 0%, rgba(125, 73, 50, 0.025) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* View Container - App SPA Wrapper */
.views-wrapper {
  position: relative;
  width: 100vw;
  height: calc(100vh - 80px);
  margin-top: 80px;
  overflow: hidden;
  transition: height 0.35s ease;
}

.views-wrapper.dock-visible {
  height: calc(100vh - 80px - 110px);
}

/* Screen Sections (Smart Conditional Scroll System) */
.view-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 1.8rem 0 2.5rem 0;
  display: none;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 1;
}

.view-section.active {
  display: block;
  opacity: 1;
  transform: scale(1);
  z-index: 10;
}

.view-section.no-scroll {
  overflow-y: hidden !important;
}

/* Custom Inner Scrollbar */
.view-section::-webkit-scrollbar {
  width: 6px;
}

.view-section::-webkit-scrollbar-track {
  background: transparent;
}

.view-section::-webkit-scrollbar-thumb {
  background: rgba(200, 107, 60, 0.24);
  border-radius: 10px;
}

.view-section::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Typography Helpers */
.heading-primary {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-secondary {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: var(--gradient-purple);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-purple);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 8px var(--accent-purple);
}

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

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-purple);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(200, 107, 60, 0.16);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 16px rgba(200, 107, 60, 0.22);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-purple);
  background: var(--bg-card-hover);
  color: var(--accent-purple);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   3. Header Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: var(--glow-purple);
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-purple);
  font-weight: 700;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   4. Hero Section View
   -------------------------------------------------------------------------- */
.hero-view-content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  margin-bottom: 1.8rem;
  box-shadow: none;
}

.hero-pill-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 5px var(--accent-purple);
}

.hero-title {
  max-width: 850px;
  margin: 0 auto 1.2rem auto;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.2rem auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* 4 Quick Nav Cards Grid */
.hero-nav-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1050px;
}

.nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  min-height: 170px;
}

.nav-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg), var(--glow-purple);
  background: var(--bg-card-hover);
}

.nav-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.nav-card:hover .nav-card-icon {
  background: var(--gradient-purple);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--glow-purple);
}

.nav-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   5. Projects View (Replicating User Screenshot Exact Design Layout)
   -------------------------------------------------------------------------- */
.projects-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.projects-title-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

[dir="rtl"] .projects-title-box {
  align-items: flex-start;
}

.projects-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.4rem;
  border-radius: var(--radius-full);
}

.filter-tab {
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
}

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

.filter-tab.active {
  background: var(--gradient-purple);
  color: #ffffff;
  box-shadow: var(--glow-purple);
}

/* Projects Grid - 3 Column Layout matching user screenshot */
.projects-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}

.project-card-v2 {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card-v2:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg), var(--glow-purple);
}

.project-card-v2-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: var(--bg-main);
  position: relative;
}

.project-card-v2-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card-v2:hover .project-card-v2-img img {
  transform: scale(1.06);
}

.project-card-v2-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-v2-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

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

.project-card-v2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.v2-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Fixed Always-Visible Bottom Dock & Footer Wrapper */
.bottom-dock-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 500;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-color);
  padding: 0.7rem 1rem 0.55rem 1rem;
  box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.32);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

.bottom-dock-wrapper.hide-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

.bottom-dock-wrapper .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 950px;
  margin: 0 auto;
}

.bottom-dock-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
}

.dock-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
}

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

.dock-btn.active {
  background: var(--gradient-purple);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(200, 107, 60, 0.18);
}

/* Page navigation replaces the header without changing the visual language. */
.header,
.mobile-menu,
.mobile-menu-backdrop {
  display: none !important;
}

.views-wrapper,
.views-wrapper.dock-visible {
  margin-top: 0;
  height: calc(100vh - 110px);
}

.view-section,
.view-section.active {
  display: block;
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: none;
}

.page-tools {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 120;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: nowrap;
}

#themeToggle {
  display: none !important;
}

.page-tools #cvBtn {
  display: inline-flex;
}

.home-name {
  position: fixed;
  top: 1.35rem;
  right: 1.5rem;
  z-index: 120;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.home-page .page-tools {
  right: auto;
  left: 1.5rem;
}

.home-page .hero-view-content {
  justify-content: center;
  align-items: center;
  text-align: center;
}

[dir="rtl"] .page-tools { right: auto; left: 1.5rem; }

[dir="rtl"] .home-page .page-tools { right: 1.5rem; left: auto; }
[dir="rtl"] .home-name { right: auto; left: 1.5rem; }

@media (max-width: 640px) {
  .page-tools {
    top: 0.85rem;
    right: 0.85rem;
    left: auto;
    gap: 0.35rem;
  }

  .home-page .page-tools {
    right: auto;
    left: 0.85rem;
  }

  .page-tools #cvBtn {
    padding: 0.55rem 0.7rem;
    font-size: 0.75rem;
  }

  .home-name {
    top: 1rem;
    right: 0.85rem;
    font-size: 0.9rem;
  }

  [dir="rtl"] .home-page .page-tools { right: 0.85rem; left: auto; }
  [dir="rtl"] .home-name { right: auto; left: 0.85rem; }

  .views-wrapper,
  .views-wrapper.dock-visible { height: calc(100vh - 92px); }
  .bottom-dock-wrapper { padding: 0.55rem 0.5rem 0.4rem; }
  .bottom-dock-bar { gap: 0.4rem; }
  .dock-btn { padding: 0.65rem 0.4rem; font-size: 0.78rem; }
  .footer-copy-text { font-size: 0.68rem; }
}

.footer-copy-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

/* --------------------------------------------------------------------------
   6. Other Views Styling
   -------------------------------------------------------------------------- */
.journey-dashboard {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 3rem;
  align-items: start;
}

.profile-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.profile-avatar-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin-bottom: 1.8rem;
}

.profile-avatar-wrapper::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: var(--radius-lg);
  background: var(--gradient-purple);
  filter: blur(12px);
  opacity: 0.6;
}

.profile-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.profile-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 0.8rem;
}

.profile-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.journey-content {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.journey-block {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

.block-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.block-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.journey-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.skills-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.skill-pill i {
  color: var(--accent-purple);
}

.dashboard-footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.badge-item i {
  color: var(--accent-purple);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md), var(--glow-purple);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-purple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--glow-purple);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

.objective-card {
  background: var(--gradient-card), var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 880px;
  margin: 3rem auto;
  box-shadow: var(--shadow-lg), var(--glow-purple);
}

.objective-quote {
  font-size: 2.5rem;
  color: var(--accent-purple);
  margin-bottom: 1rem;
}

.objective-text {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.contact-dashboard {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

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

.contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-card-val {
  font-weight: 600;
  font-size: 1rem;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-purple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.social-bar {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--accent-purple);
  color: #ffffff;
  border-color: var(--accent-purple);
  transform: translateY(-3px);
  box-shadow: var(--glow-purple);
}

.contact-form-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field.full {
  grid-column: span 2;
}

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

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(200, 107, 60, 0.16);
}

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

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--glow-purple);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
  overflow-y: auto;
}

.project-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.8rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-pill);
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 1.2rem;
}

.modal-close:hover {
  color: var(--accent-purple);
}

.modal-body {
  padding: 2.2rem;
}

/* Mobile Drawer Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 200;
  padding: 5rem 2rem 2rem 2rem;
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--accent-purple);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-purple);
  color: #ffffff;
  padding: 1rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

[dir="rtl"] .toast {
  right: auto;
  left: 2rem;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Focused single-page portfolio presentation */
html, body {
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: static;
}

body::before,
#ambientCanvas,
.cursor-dot,
.cursor-follower,
.sound-toggle,
.bottom-dock-wrapper {
  display: none !important;
}

.header {
  height: 72px;
  background: var(--bg-main);
  backdrop-filter: none;
  box-shadow: none;
}

.views-wrapper,
.views-wrapper.dock-visible {
  width: 100%;
  height: auto;
  margin-top: 72px;
  overflow: visible;
}

.view-section,
.view-section.active {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  opacity: 1;
  transform: none;
  overflow: visible;
  padding: 7rem 0;
  scroll-margin-top: 72px;
}

#home {
  min-height: min(690px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.hero-view-content {
  min-height: 0;
  align-items: flex-start;
  text-align: left;
  padding: 0 1.5rem;
}

.hero-kicker {
  color: var(--accent-purple);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  max-width: 720px;
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -0.03em;
}

.hero-tagline {
  max-width: 520px;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.hero-actions {
  justify-content: flex-start;
  margin: 0;
}

.btn {
  border-radius: 7px;
  box-shadow: none;
}

.btn-primary {
  background: var(--accent-purple);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.projects-header-wrapper {
  align-items: flex-start;
  margin-bottom: 2.25rem;
}

.projects-title-box .heading-primary {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
}

.projects-filter-bar {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 1.25rem;
}

.filter-tab {
  padding: 0.35rem 0;
  border-radius: 0;
  border-bottom: 1px solid transparent;
}

.filter-tab.active {
  background: transparent;
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
  box-shadow: none;
}

.projects-grid-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 0;
}

.project-card-v2 {
  border-radius: 8px;
  box-shadow: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.project-card-v2:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: none;
}

.project-card-v2-img {
  height: 190px;
}

.project-card-v2:hover .project-card-v2-img img {
  transform: none;
}

.project-card-v2-content {
  padding: 1.35rem;
}

.project-card-v2-title {
  font-size: 1.2rem;
}

.project-card-v2-desc {
  font-size: 0.86rem;
  margin-bottom: 1.1rem;
}

.v2-tag {
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.15rem;
  color: var(--accent-purple);
  font-size: 0.82rem;
  font-weight: 700;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: start;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.about-layout .heading-secondary {
  margin-top: 1rem;
}

.about-text {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.skills-line {
  margin-top: 2rem;
  color: var(--text-main);
  line-height: 2;
}

.skills-line span {
  color: var(--accent-purple);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form-wrapper {
  display: none;
}

.contact-note {
  color: var(--text-muted);
  font-size: 1.05rem;
  padding-top: 0.7rem;
}

.simple-footer {
  padding: 2rem 1.5rem 5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 760px) {
  .nav-links,
  #cvBtn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .projects-grid-3col,
  .about-layout,
  .contact-dashboard {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-filter-bar {
    width: 100%;
    justify-content: space-between;
  }

  .view-section {
    padding: 5rem 0;
  }

  #home {
    min-height: 560px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }
}

  /* Final polish: keep the identity, quiet the repeated effects. */
  #ambientCanvas { opacity: 0.16; }
  body::before { opacity: 0.55; }

  .journey-dashboard,
  .profile-card,
  .service-card,
  .objective-card,
  .contact-form-wrapper {
    box-shadow: var(--shadow-sm);
  }

  .service-card:hover,
  .project-card-v2:hover,
  .profile-card:hover {
    box-shadow: var(--shadow-md);
  }

  .service-icon,
  .contact-card-icon {
    background: var(--bg-pill);
    color: var(--accent-purple);
    box-shadow: none;
  }

  .service-icon {
    border: 1px solid var(--border-color);
  }

  .profile-avatar-wrapper::before { opacity: 0.3; }
  .section-tag::before { box-shadow: none; }
  .badge-dot::after { opacity: 0.45; }

  .project-card-v2::before,
  .service-card::before,
  .nav-card::before { opacity: 0; }

  .project-card-v2:hover::before,
  .service-card:hover::before,
  .nav-card:hover::before { opacity: 0.2; }

  .bottom-dock-wrapper { box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.24); }
  .dock-btn.active { box-shadow: 0 3px 10px rgba(200, 107, 60, 0.16); }
  .theme-toggle:not(.sound-toggle) { display: none !important; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

/* Final precedence: keep the original SPA composition visible. */
html, body { width: 100vw; height: 100vh; overflow: hidden !important; position: fixed; top: 0; left: 0; }
body::before, #ambientCanvas, .cursor-dot, .cursor-follower, .bottom-dock-wrapper { display: block !important; }
.sound-toggle { display: flex !important; }
.header { height: 80px; background: var(--bg-nav); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.views-wrapper, .views-wrapper.dock-visible { width: 100vw; height: calc(100vh - 80px); margin-top: 80px; overflow: hidden; }
.views-wrapper.dock-visible { height: calc(100vh - 80px - 110px); }
.view-section, .view-section.active { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 1.8rem 0 2.5rem; display: none; opacity: 0; transform: scale(0.97); overflow-y: auto; }
.view-section.active { display: block; opacity: 1; transform: scale(1); }
#home { min-height: 0; display: none; padding: 1.8rem 0 2.5rem; }
#home.active { display: block; }
.hero-view-content { min-height: 100%; align-items: center; text-align: center; padding: 1rem 1.5rem; }
.hero-actions { justify-content: center; margin-bottom: 3rem; }
.hero-tagline { max-width: 680px; margin: 0 auto 2.2rem; }
.contact-form-wrapper { display: block; }
.projects-filter-bar { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 0.4rem; border-radius: var(--radius-full); }
.filter-tab { padding: 0.45rem 1.2rem; border: 0; border-radius: var(--radius-full); }
.filter-tab.active { background: var(--accent-purple); color: #fff; box-shadow: none; }
.project-card-v2 { border-radius: var(--radius-lg); box-shadow: none; }
.project-card-v2:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), 0 0 14px rgba(200, 107, 60, 0.14); }
.project-card-v2-img { height: 210px; }
.project-card-v2-content { padding: 1.8rem; }
.project-card-v2-title { font-size: 1.35rem; }
.project-card-v2-desc { font-size: 0.9rem; margin-bottom: 1.5rem; }
.v2-tag { border-radius: var(--radius-sm); padding: 0.25rem 0.75rem; font-size: 0.75rem; }

/* Multi-page shell: the dock is the only primary navigation surface. */
.multi-page-shell .header,
.multi-page-shell .mobile-menu,
.multi-page-shell .mobile-menu-backdrop { display: none !important; }
.multi-page-shell .views-wrapper,
.multi-page-shell .views-wrapper.dock-visible { margin-top: 0; height: calc(100vh - 110px); overflow: hidden; }
.multi-page-shell .view-section,
.multi-page-shell .view-section.active { position: relative; inset: auto; display: block; width: 100%; height: 100%; opacity: 1; transform: none; overflow-y: auto; }
.multi-page-shell .bottom-dock-wrapper { display: block !important; }
.multi-page-shell .page-tools { display: flex; }

@media (max-width: 640px) {
  .multi-page-shell .views-wrapper,
  .multi-page-shell .views-wrapper.dock-visible { height: calc(100vh - 92px); }
  .multi-page-shell .bottom-dock-wrapper { padding: 0.55rem 0.5rem 0.4rem; }
  .multi-page-shell .bottom-dock-bar { gap: 0.4rem; }
  .multi-page-shell .dock-btn { padding: 0.65rem 0.4rem; font-size: 0.78rem; }
}

/* Keep the original view-switching composition above the cleanup overrides. */
html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden !important;
  position: fixed;
  top: 0;
  left: 0;
}

body::before,
#ambientCanvas,
.cursor-dot,
.cursor-follower,
.sound-toggle,
.bottom-dock-wrapper {
  display: block !important;
}

.sound-toggle { display: flex !important; }
.header { height: 80px; background: var(--bg-nav); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.views-wrapper, .views-wrapper.dock-visible { width: 100vw; height: calc(100vh - 80px); margin-top: 80px; overflow: hidden; }
.views-wrapper.dock-visible { height: calc(100vh - 80px - 110px); }
.view-section, .view-section.active { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 1.8rem 0 2.5rem; display: none; opacity: 0; transform: scale(0.97); overflow-y: auto; }
.view-section.active { display: block; opacity: 1; transform: scale(1); }
#home { min-height: 0; display: none; padding: 1.8rem 0 2.5rem; }
#home.active { display: block; }
.hero-view-content { min-height: 100%; align-items: center; text-align: center; padding: 1rem 1.5rem; }
.hero-actions { justify-content: center; margin-bottom: 3rem; }
.hero-kicker { margin-bottom: 1.25rem; }
.btn-primary { background: var(--gradient-purple); }
.project-card-v2 { border-radius: var(--radius-lg); box-shadow: none; transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-fast); }
.project-card-v2:hover { box-shadow: var(--shadow-md), 0 0 14px rgba(200, 107, 60, 0.14); }
.project-card-v2::before, .service-card::before, .nav-card::before { opacity: 0; }
.project-card-v2:hover::before, .service-card:hover::before, .nav-card:hover::before { opacity: 0.35; }
.cursor-follower.hovered { width: 48px; height: 48px; }

@media (max-width: 992px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
}

@media (max-width: 640px) {
  .projects-grid-3col { grid-template-columns: 1fr; }
  .hero-nav-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Small human touches: preserve the visual language, remove template intensity. */
.hero-tagline { max-width: 680px; margin: 0 auto 2.2rem; }
.contact-form-wrapper { display: block; }
.projects-filter-bar { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 0.4rem; border-radius: var(--radius-full); }
.filter-tab { padding: 0.45rem 1.2rem; border: 0; border-radius: var(--radius-full); }
.filter-tab.active { background: var(--accent-purple); color: #fff; box-shadow: none; }
.project-card-v2-img { height: 210px; }
.project-card-v2-content { padding: 1.8rem; }
.project-card-v2-title { font-size: 1.35rem; }
.project-card-v2-desc { font-size: 0.9rem; margin-bottom: 1.5rem; }
.v2-tag { border-radius: var(--radius-sm); padding: 0.25rem 0.75rem; font-size: 0.75rem; }
.project-card-v2:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), 0 0 14px rgba(200, 107, 60, 0.14); }

/* Quiet the repeated effects without changing the original components. */
.journey-dashboard,
.profile-card,
.objective-card,
.contact-form-wrapper { box-shadow: var(--shadow-sm); }
.service-card:hover,
.project-card-v2:hover { box-shadow: var(--shadow-sm); }
.service-icon,
.contact-card-icon { background: var(--bg-pill); color: var(--accent-purple); box-shadow: none; }
.section-tag::before { box-shadow: none; }
.badge-dot::after { box-shadow: none; }

/* Preserve the original app-style view system while reducing template-like excess. */
html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden !important;
  position: fixed;
  top: 0;
  left: 0;
}

body::before,
#ambientCanvas,
.cursor-dot,
.cursor-follower,
.sound-toggle,
.bottom-dock-wrapper {
  display: initial !important;
}

.header {
  height: 80px;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.views-wrapper,
.views-wrapper.dock-visible {
  width: 100vw;
  height: calc(100vh - 80px);
  margin-top: 80px;
  overflow: hidden;
}

.views-wrapper.dock-visible {
  height: calc(100vh - 80px - 110px);
}

.view-section,
.view-section.active {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 1.8rem 0 2.5rem;
  display: none;
  opacity: 0;
  transform: scale(0.97);
  overflow-y: auto;
  scroll-margin-top: 0;
}

.view-section.active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

#home {
  min-height: 0;
  display: none;
  padding: 1.8rem 0 2.5rem;
}

#home.active {
  display: block;
}

.hero-view-content {
  min-height: 100%;
  align-items: center;
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero-actions {
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-kicker {
  margin-bottom: 0;
}

.btn-primary {
  background: var(--gradient-purple);
}

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

.project-card-v2 {
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card-v2:hover {
  box-shadow: var(--shadow-md), 0 0 14px rgba(200, 107, 60, 0.14);
}

.project-card-v2::before,
.service-card::before,
.nav-card::before {
  opacity: 0;
}

.project-card-v2:hover::before,
.service-card:hover::before,
.nav-card:hover::before {
  opacity: 0.35;
}

.cursor-follower.hovered {
  width: 48px;
  height: 48px;
}

@media (max-width: 640px) {
  .hero-nav-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .projects-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .view-section.no-scroll {
    overflow-y: auto !important;
  }

  .hero-nav-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-dashboard,
  .contact-dashboard {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .projects-grid-3col {
    grid-template-columns: 1fr;
  }

  .bottom-dock-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-nav-cards {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: span 1;
  }
}

/* --------------------------------------------------------------------------
   8. Ultra-Modern Interactive Animations & Enhancements
   -------------------------------------------------------------------------- */

/* Custom Glow Cursor Follower */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-purple);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  box-shadow: 0 0 6px var(--accent-purple);
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(200, 107, 60, 0.42);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  backdrop-filter: none;
}

.cursor-follower.hovered {
  width: 56px;
  height: 56px;
  border-color: var(--accent-magenta);
  background-color: rgba(225, 132, 80, 0.04);
}

@media (pointer: coarse), (hover: none) {
  .cursor-dot, .cursor-follower {
    display: none !important;
  }
}

/* Typewriter Cursor Indicator */
.typewriter-cursor {
  display: inline-block;
  color: var(--accent-magenta);
  font-weight: 300;
  margin-left: 2px;
  animation: blinkCursor 0.8s infinite alternate;
}

[dir="rtl"] .typewriter-cursor {
  margin-left: 0;
  margin-right: 2px;
}

@keyframes blinkCursor {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* 3D Tilt & Glass Sheen Overlay for Cards */
.projects-grid-3col,
.services-grid,
.journey-dashboard {
  perspective: 1000px;
}

.project-card-v2,
.service-card,
.nav-card,
.profile-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  cursor: pointer;
}

/* Sheen Light Reflection */
.project-card-v2::before,
.service-card::before,
.nav-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.project-card-v2:hover::before,
.service-card:hover::before,
.nav-card:hover::before {
  opacity: 0.35;
}

/* Status Dot Glowing Pulse */
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  position: relative;
}

.badge-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Sound Toggle Control */
.sound-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.sound-toggle:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  transform: scale(1.05);
}

.sound-toggle.muted {
  color: var(--text-dim);
  opacity: 0.6;
}

/* Button Ripple & Active Touch Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:active::after {
  animation: ripple 0.4s ease-out;
}

@keyframes ripple {
  0% { transform: scale(0, 0); opacity: 0.5; }
  100% { transform: scale(40, 40); opacity: 0; }
}

/* Final overrides keep the page calm after the legacy interaction styles. */
html, body {
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: static;
}

body::before, #ambientCanvas, .cursor-dot, .cursor-follower, .sound-toggle, .bottom-dock-wrapper { display: block !important; }
.sound-toggle { display: flex !important; }

.header {
  height: 72px;
  background: var(--bg-main);
  backdrop-filter: none;
  box-shadow: none;
}

.views-wrapper,
.views-wrapper.dock-visible {
  height: calc(100vh - 80px);
  margin-top: 80px;
  overflow: hidden;
}

.views-wrapper.dock-visible {
  height: calc(100vh - 80px - 110px);
}

.view-section,
.view-section.active {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
  transform: scale(0.97);
  overflow-y: auto;
  padding: 1.8rem 0 2.5rem;
}

.view-section.active { display: block; opacity: 1; transform: scale(1); }
#home { min-height: 0; display: none; padding: 1.8rem 0 2.5rem; }
#home.active { display: block; }
.hero-view-content { min-height: 100%; align-items: center; text-align: center; padding: 1rem 1.5rem; }
.hero-actions { justify-content: center; margin-bottom: 3rem; }
.hero-tagline { max-width: 680px; margin: 0 auto 2.2rem; }

.views-wrapper,
.views-wrapper.dock-visible {
  width: 100%;
  height: auto;
  margin-top: 72px;
  overflow: visible;
}

.view-section,
.view-section.active {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  opacity: 1;
  transform: none;
  overflow: visible;
  padding: 7rem 0;
  scroll-margin-top: 72px;
}

#home {
  min-height: min(690px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.hero-view-content {
  min-height: 0;
  align-items: flex-start;
  text-align: left;
  padding: 0 1.5rem;
}

.hero-kicker {
  color: var(--accent-purple);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  max-width: 720px;
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -0.03em;
}

.hero-tagline {
  max-width: 520px;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.hero-actions {
  justify-content: flex-start;
  margin: 0;
}

.btn {
  border-radius: 7px;
  box-shadow: none;
}

.btn-primary {
  background: var(--accent-purple);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.projects-header-wrapper {
  align-items: flex-start;
  margin-bottom: 2.25rem;
}

.projects-title-box .heading-primary {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
}

.projects-filter-bar {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 1.25rem;
}

.filter-tab {
  padding: 0.35rem 0;
  border-radius: 0;
  border-bottom: 1px solid transparent;
}

.filter-tab.active {
  background: transparent;
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
  box-shadow: none;
}

.projects-grid-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 0;
}

.project-card-v2 {
  border-radius: 8px;
  box-shadow: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.project-card-v2:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: none;
}

.project-card-v2-img {
  height: 190px;
}

.project-card-v2:hover .project-card-v2-img img {
  transform: none;
}

.project-card-v2-content {
  padding: 1.35rem;
}

.project-card-v2-title {
  font-size: 1.2rem;
}

.project-card-v2-desc {
  font-size: 0.86rem;
  margin-bottom: 1.1rem;
}

.v2-tag {
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.15rem;
  color: var(--accent-purple);
  font-size: 0.82rem;
  font-weight: 700;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: start;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.about-layout .heading-secondary {
  margin-top: 1rem;
}

.about-text {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.skills-line {
  margin-top: 2rem;
  color: var(--text-main);
  line-height: 2;
}

.skills-line span {
  color: var(--accent-purple);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form-wrapper { display: block; }

.contact-note {
  color: var(--text-muted);
  font-size: 1.05rem;
  padding-top: 0.7rem;
}

.simple-footer {
  padding: 2rem 1.5rem 5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 760px) {
  .nav-links,
  #cvBtn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .projects-grid-3col,
  .about-layout,
  .contact-dashboard {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-filter-bar {
    width: 100%;
    justify-content: space-between;
  }

  .view-section {
    padding: 5rem 0;
  }

  #home {
    min-height: 560px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }
}

