/* Base & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  background-color: #0c0a09;
  background-image: radial-gradient(circle at 50% 0%, #2c1c16 0%, #17110e 50%, #0c0a09 100%);
  background-attachment: fixed;
  color: #fffdfa;
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Designer Code Blueprint Grid Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.85;
}

.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}

/* Fixed 3D Frame Sequence Scroll Canvas Background */
canvas#scrollCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-color: #0c0a09;
  opacity: 0.45;
  mix-blend-mode: screen;
}

/* Background Rain Canvas */
#rainCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Text Highlights & Gradients */
.highlight {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.purple-highlight {
  background: linear-gradient(135deg, #f43f5e 0%, #fb923c 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 1.5rem;
}

/* Monospaced Developer Code Badge Pill */
.code-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  background: rgba(30, 20, 16, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12);
}

.code-symbol {
  color: #ea580c;
  font-weight: 700;
}

.code-tag {
  background: rgba(234, 88, 12, 0.2);
  color: #f97316;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 4px;
}

/* Preloader overlay */
.loader-overlay {
  position: fixed;
  inset: 0;
  background-color: #0c0a09;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.progress-bar-container {
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  transition: width 0.15s ease-out;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.loader-text {
  font-size: 0.9rem;
  color: #a8a090;
  letter-spacing: 0.5px;
}

/* Fixed Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  transition: background 0.3s ease;
}

.nav-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.nav-links a {
  color: #d6cebf;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-pill {
  border-radius: 9999px;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.65);
}

.btn-purple {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 4px 24px rgba(244, 63, 94, 0.4);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(244, 63, 94, 0.6);
}

.btn-secondary {
  background: rgba(35, 25, 20, 0.5);
  color: #fffdfa;
  border: 1px solid rgba(251, 146, 60, 0.4);
}

.btn-secondary:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.7);
  transform: translateY(-2px);
}

/* Content Overlay Layer */
.content-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  pointer-events: auto;
}

/* Sections Common */
section {
  width: 100%;
  padding: 90px 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 80px;
}

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

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #d6cebf;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Category Tag Pill/Text */
.category-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fb923c;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.category-tag::before {
  content: "// ";
  color: #ea580c;
  opacity: 0.85;
}

.align-left {
  text-align: left;
  margin-left: 0;
}

/* 1. Services Section */
.services-section {
  align-items: flex-start;
  justify-content: center;
}

.services-container {
  max-width: 680px;
}

.services-container h2 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.services-subtitle {
  font-size: 1.15rem;
  color: #d6cebf;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

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

.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.purple-bullet {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.service-item-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.service-item-text p {
  font-size: 0.95rem;
  color: #c4baa7;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* 2. Process Section */
.process-section {
  justify-content: center;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
  margin-top: 2.5rem;
}

.process-step {
  background: transparent;
  border: none;
  padding: 1rem 0;
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.4rem;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.process-step h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.process-step p {
  font-size: 0.95rem;
  color: #d6cebf;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* 1. Hero Section & Profile Card Grid */
.hero-section {
  align-items: center;
  justify-content: center;
  padding-top: 140px;
  width: 100%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 660px;
}

.hero-content h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #d6cebf;
  margin-bottom: 1.8rem;
  max-width: 540px;
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* Interactive IDE Code Terminal Box */
.hero-code-box {
  background: #17110d;
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2.2rem;
  max-width: 560px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.12);
  backdrop-filter: blur(12px);
}

.code-header {
  background: #231914;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #d6cebf;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.code-lang {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #ea580c;
  background: rgba(234, 88, 12, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.code-body {
  padding: 1.1rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #fffdfa;
  overflow-x: auto;
}

.code-body .kwd { color: #f97316; font-weight: 600; }
.code-body .var { color: #f59e0b; font-weight: 600; }
.code-body .prop { color: #fb7185; }
.code-body .str { color: #fef3c7; }

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Profile Card Styling (Reference Design) */
.profile-design-card {
  position: relative;
  background: #fffdfa;
  color: #1c1917;
  border-radius: 28px;
  padding: 1.75rem 1.5rem 2.2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(245, 158, 11, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.profile-dashed-arc {
  position: absolute;
  pointer-events: none;
}

.profile-dashed-arc.top-arc {
  top: -25px;
  left: -15px;
  width: 160px;
  height: 100px;
}

.profile-img-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 330px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.35);
  transition: transform 0.3s ease;
  display: block;
}

.flame-badge-wrap {
  position: relative;
  width: 100%;
  height: 32px;
  margin-top: -16px;
  margin-bottom: 0.5rem;
}

.flame-badge-wrap .bottom-arc {
  bottom: -15px;
  left: 5%;
  width: 90%;
  height: 60px;
}

.flame-badge {
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ea580c;
  color: #ffffff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.4);
}

.profile-name {
  font-size: 2rem;
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.profile-bio {
  font-size: 1rem;
  color: #57534e;
  line-height: 1.5;
  font-weight: 500;
  max-width: 310px;
  margin: 0 auto 1.5rem;
}

.profile-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1.5px solid rgba(234, 88, 12, 0.25);
}

.social-icon-btn:hover {
  background: #ea580c;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
}

/* 2. Features Grid Section ("Why Blockchain?") */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.feature-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.5rem 1rem;
  transition: all 0.35s ease;
  box-shadow: none;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.feature-card p {
  font-size: 0.95rem;
  color: #d6cebf;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* 3. AI Automation Section (New Reference Section) */
.automation-section {
  align-items: flex-start;
  justify-content: center;
}

.automation-card {
  width: 100%;
  max-width: 920px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 1.5rem 0;
}

.automation-card h2 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.automation-subtitle {
  font-size: 1.15rem;
  color: #d6cebf;
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.automation-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.automation-perks {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 3rem;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fef3c7;
  font-size: 0.92rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.perk-item svg {
  color: #fbbf24;
  flex-shrink: 0;
}

.trusted-bar {
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trusted-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #a8a090;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.company-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #d6cebf;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.3px;
  transition: color 0.25s ease, transform 0.25s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.company-logo:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.logo-icon {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 4. Pricing Plans Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: transparent;
  border: none;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  box-shadow: none;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

/* Highlighted Popular Card */
.popular-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.popular-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.plan-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.plan-price {
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.8rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.plan-price .currency {
  font-size: 1.8rem;
  vertical-align: top;
  font-weight: 600;
}

.plan-price .period {
  font-size: 0.95rem;
  color: #c4baa7;
  font-weight: 400;
}

.plan-subtitle {
  font-size: 0.95rem;
  color: #d6cebf;
  margin-bottom: 1.5rem;
  min-height: 2.8rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.plan-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 1.5rem;
}

.features-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #fef3c7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Footer */
.footer {
  width: 100%;
  padding: 40px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-text {
  font-size: 0.9rem;
  color: #a8a090;
}

/* ==========================================================================
   Projects Page Custom Dark Background & Component Styles
   ========================================================================== */

body.projects-page {
  background: radial-gradient(circle at 50% -20%, #2c1c16 0%, #17110e 55%, #0c0a09 100%) fixed;
  color: #fffdfa;
  min-height: 100vh;
}

.projects-main-overlay {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.projects-hero-section {
  padding-top: 150px;
  padding-bottom: 40px;
}

.projects-hero-content h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.projects-hero-subtitle {
  font-size: 1.2rem;
  color: #d6cebf;
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.filter-bar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d6cebf;
  padding: 0.55rem 1.3rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fbbf24;
}

.projects-grid-section {
  padding: 40px 0 80px;
}

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

.project-card {
  background: rgba(25, 18, 15, 0.45);
  border: 1px solid rgba(251, 146, 60, 0.12);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.18);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.project-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
}

.purple-badge {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.cyan-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-metrics {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c4baa7;
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.project-desc {
  font-size: 0.98rem;
  color: #d6cebf;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.project-actions {
  display: flex;
  gap: 0.8rem;
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

/* Impact Metrics Section */
.projects-impact-section {
  padding: 60px 0 80px;
}

.impact-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 3.5rem;
}

.impact-card {
  background: rgba(25, 18, 15, 0.35);
  border: 1px solid rgba(251, 146, 60, 0.15);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.impact-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1;
  margin-bottom: 0.6rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.impact-label {
  font-size: 0.9rem;
  color: #d6cebf;
  font-weight: 500;
}

.spotlight-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  padding: 2.5rem;
}

.spotlight-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: #fef3c7;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.spotlight-author {
  font-size: 0.95rem;
  color: #fbbf24;
}

/* Tech Stack Capabilities & Inquiry Banner */
.projects-cta-section {
  padding: 40px 0 100px;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 4rem;
}

.tech-group h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 0.6rem;
}

.tech-group p {
  font-size: 0.92rem;
  color: #d6cebf;
  line-height: 1.55;
}

.inquiry-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  text-align: center;
}

.inquiry-banner h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.inquiry-banner p {
  font-size: 1.1rem;
  color: #d6cebf;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Projects Responsive Media Queries */
@media (max-width: 1024px) {

  .projects-grid,
  .impact-metrics-grid,
  .tech-stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {

  .projects-grid,
  .impact-metrics-grid,
  .tech-stack-grid {
    grid-template-columns: 1fr;
  }

  .projects-hero-content h1 {
    font-size: 2.4rem;
  }

  .inquiry-banner {
    padding: 2.5rem 1.5rem;
  }

  .inquiry-banner h2 {
    font-size: 2.2rem;
  }
}


/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .features-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(1, 1fr);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1,
  .services-container h2 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content h1,
  .services-container h2 {
    font-size: 2.4rem;
  }

  .section-header h2,
  .matters-card h2 {
    font-size: 2.2rem;
  }

  .features-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .matters-card {
    padding: 2rem 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* Contact Section & Cards */
.contact-section {
  padding: 80px 0 40px;
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2.5rem auto 0;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: rgba(26, 18, 15, 0.65);
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(36, 24, 19, 0.85);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cyan-glow {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.purple-glow {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.blue-glow {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.85rem;
  color: #a8a090;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fffdfa;
  word-break: break-all;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: #a8a090;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-links .divider {
  color: #57534e;
}

/* Project Inquiry Form (Proper Validation & Interactive States) */
.inquiry-form-card {
  max-width: 760px;
  margin: 0 auto 3rem;
  background: #171210;
  border: 1px solid rgba(251, 146, 60, 0.15);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-row.two-cols {
    grid-template-columns: 1fr;
  }
}

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

.form-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: #d6cebf;
}

.required-asterisk {
  color: #ea580c;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #251c17;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: #fffdfa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8c8275;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #f59e0b;
  background: #2c201a;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

.error-msg {
  display: none;
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 2px;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  color: #fffdfa;
}

.select-wrapper select:invalid {
  color: #8c8275;
}

.select-wrapper select option {
  background: #251c17;
  color: #fffdfa;
}

.select-arrow {
  position: absolute;
  right: 1.1rem;
  pointer-events: none;
  color: #d6cebf;
}

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

.inquiry-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.95rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.inquiry-submit-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
}

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

.inquiry-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-status-msg {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.form-status-msg.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.form-status-msg.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.form-status-msg.hidden {
  display: none;
}

/* ==========================================================================
   5. Technical Skills - Core Expertise Section (Reference Design)
   ========================================================================== */
.skills-section {
  padding: 5rem 0;
  position: relative;
  width: 100%;
}

.skills-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}

.skills-header-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.skills-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.title-purple-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 12px #f59e0b, 0 0 24px rgba(245, 158, 11, 0.8);
}

.skills-main-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.skills-highlight {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-transform: uppercase;
}

/* Category Filter Bar */
.skills-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.skill-filter-pill {
  background: rgba(25, 18, 15, 0.6);
  border: 1px solid rgba(251, 146, 60, 0.25);
  color: #c4baa7;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.skill-filter-pill:hover {
  border-color: rgba(245, 158, 11, 0.6);
  color: #fffdfa;
  transform: translateY(-2px);
}

.skill-filter-pill.active {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.55), 0 4px 15px rgba(234, 88, 12, 0.4);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.skill-card {
  background: rgba(24, 17, 14, 0.7);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  padding: 2.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.skill-card:hover {
  border-color: #fbbf24;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35), 0 0 15px rgba(251, 191, 36, 0.2);
  transform: translateY(-6px);
  background: rgba(38, 26, 20, 0.85);
}

.skill-icon-wrapper {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon-wrapper {
  transform: scale(1.12);
}

.skill-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fef3c7;
  letter-spacing: -0.01em;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .skills-main-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   DYNAMIC FLOATING ANIMATIONS FOR BUTTONS & FLOATING ACTION BUTTONS (FAB)
   ========================================================================== */

/* Keyframe 1: Main levitating float animation for primary buttons */
@keyframes floatBob {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Keyframe 2: Counter-phase floating animation for adjacent/secondary buttons */
@keyframes floatBobAlt {
  0% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(2px);
  }
  100% {
    transform: translateY(-5px);
  }
}

/* Keyframe 3: Continuous subtle float with rotation wave */
@keyframes floatGentleWave {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-4px) rotate(0.8deg);
  }
  66% {
    transform: translateY(3px) rotate(-0.8deg);
  }
}

/* Keyframe 4: Glowing aura pulse for floating buttons */
@keyframes floatGlowPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4), 0 0 0px rgba(245, 158, 11, 0);
  }
  50% {
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.65), 0 0 18px rgba(245, 158, 11, 0.4);
  }
}

/* Keyframe 5: Ping notification ring for corner FAB button */
@keyframes floatPingRing {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  80%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Base Floating Button Classes */
.btn-float {
  animation: floatBob 3.6s ease-in-out infinite, floatGlowPulse 3.6s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.btn-float-alt {
  animation: floatBobAlt 4s ease-in-out infinite;
  will-change: transform;
}

.btn-float-wave {
  animation: floatGentleWave 5s ease-in-out infinite;
  will-change: transform;
}

/* Hover magnetic elevation override for all floating buttons */
.btn-float:hover,
.btn-float-alt:hover,
.btn-float-wave:hover {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.03) !important;
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.55), 0 0 20px rgba(245, 158, 11, 0.4) !important;
}

.btn-float:active,
.btn-float-alt:active,
.btn-float-wave:active {
  transform: translateY(-2px) scale(0.98) !important;
}

/* Profile Social Icon Buttons Floating Wave */
.profile-social-row .social-icon-btn {
  animation: floatGentleWave 4s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-social-row .social-icon-btn:nth-child(1) {
  animation-delay: 0s;
}

.profile-social-row .social-icon-btn:nth-child(2) {
  animation-delay: 0.6s;
}

.profile-social-row .social-icon-btn:nth-child(3) {
  animation-delay: 1.2s;
}

.profile-social-row .social-icon-btn:hover {
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.15) rotate(4deg);
  border-color: #f59e0b;
  color: #ffffff;
  background: #ea580c;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

/* Filter Pills Floating micro-interactions */
.filter-pill,
.skill-filter-pill {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-pill:hover,
.skill-filter-pill:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.filter-pill.active,
.skill-filter-pill.active {
  animation: floatBob 4.2s ease-in-out infinite;
}

/* Navbar CTA Floating Pulse */
.nav-action .btn {
  animation: floatBob 3.8s ease-in-out infinite;
}

.nav-action .btn:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.05);
}

/* Flame badge float */
.flame-badge {
  animation: floatBob 2.8s ease-in-out infinite;
}

/* Badge pill float */
.badge-pill {
  animation: floatGentleWave 4.5s ease-in-out infinite;
}

/* ==========================================================================
   FIXED CORNER FLOATING ACTION BUTTON GROUP (FAB)
   ========================================================================== */
.floating-fab-group {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 999;
  pointer-events: none;
}

.fab-btn {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20, 14, 11, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(245, 158, 11, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  text-decoration: none;
  animation: floatBob 3.5s ease-in-out infinite;
}

.fab-btn:nth-child(2) {
  animation-delay: 0.7s;
}

.fab-btn:hover {
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.12);
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 88, 12, 0.35));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5), 0 0 20px rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.fab-scroll-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* FAB Notification Ping Ring */
.fab-ping-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  pointer-events: none;
  animation: floatPingRing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Responsive FAB for mobile */
@media (max-width: 640px) {
  .floating-fab-group {
    bottom: 1.25rem;
    right: 1.25rem;
    gap: 0.65rem;
  }
  .fab-btn {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   Creative Circle Cursor Follower & Floating Circle Pad Scroller Widget
   ========================================================================== */

/* 1. Custom Creative Circle Cursor Follower */
@media (pointer: fine) {
  html, body, a, button, input, select, textarea, [role="button"], label, img, .project-card, .skill-card {
    cursor: none !important;
  }
}

.circle-cursor-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none !important;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.circle-cursor-wrap.cursor-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* 1. Small solid inner dot */
.circle-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  margin-left: -3px;
  background-color: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.8), 0 0 4px rgba(249, 115, 22, 0.6);
  pointer-events: none !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease, 
              opacity 0.3s ease;
  will-change: transform;
}

/* 2. Slower, fluid outer ring */
.circle-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  margin-left: -18px;
  border: 1.5px solid rgba(251, 191, 36, 0.65);
  border-radius: 50%;
  background-color: rgba(251, 191, 36, 0.03);
  pointer-events: none !important;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.15);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              margin 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease, 
              background-color 0.3s ease,
              opacity 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform, width, height, margin;
}

/* Dynamic Action Text Badge */
.circle-cursor-badge {
  position: fixed;
  top: 0;
  left: 0;
  margin-top: 18px;
  margin-left: 18px;
  padding: 3px 10px;
  background: rgba(12, 10, 9, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 999px;
  pointer-events: none !important;
  opacity: 0;
  transform: scale(0.7) translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(56, 189, 248, 0.2);
  white-space: nowrap;
}

/* State: Hovering Links & Buttons */
.circle-cursor-wrap.active .circle-cursor-ring,
.circle-cursor-wrap.hover-button .circle-cursor-ring {
  width: 52px;
  height: 52px;
  margin-top: -26px;
  margin-left: -26px;
  border-color: rgba(56, 189, 248, 0.75);
  background-color: rgba(56, 189, 248, 0.08);
  opacity: 0.85;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
}

.circle-cursor-wrap.active .circle-cursor-dot,
.circle-cursor-wrap.hover-button .circle-cursor-dot {
  background-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
  transform: scale(1.4);
}

.circle-cursor-wrap.active .circle-cursor-badge {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* State: Hovering Images, Cards & Media */
.circle-cursor-wrap.hover-media .circle-cursor-ring {
  width: 64px;
  height: 64px;
  margin-top: -32px;
  margin-left: -32px;
  border-color: rgba(251, 191, 36, 0.8);
  background-color: rgba(251, 191, 36, 0.12);
  opacity: 0.8;
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.35);
}

.circle-cursor-wrap.hover-media .circle-cursor-dot {
  background-color: #fbbf24;
  transform: scale(1.6);
}

/* State: Clicking (Mousedown brief scale-down animation) */
.circle-cursor-wrap.clicking .circle-cursor-ring {
  width: 28px !important;
  height: 28px !important;
  margin-top: -14px !important;
  margin-left: -14px !important;
  border-color: #f97316 !important;
  background-color: rgba(249, 115, 22, 0.2) !important;
  opacity: 1 !important;
  transition: width 0.1s ease, height 0.1s ease, margin 0.1s ease !important;
}

.circle-cursor-wrap.clicking .circle-cursor-dot {
  transform: scale(0.6) !important;
  background-color: #f97316 !important;
  transition: transform 0.1s ease !important;
}

/* Subtle Click Ripple Pulse Effect */
.cursor-ripple {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  border-radius: 50%;
  border: 1.5px solid #fbbf24;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.6);
  pointer-events: none !important;
  z-index: 999998;
  animation: ripplePulse 0.55s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes ripplePulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(4.2);
    opacity: 0;
  }
}

/* Touch / Mobile Device Auto-Disable */
@media (pointer: coarse), (max-width: 768px) {
  .circle-cursor-wrap, .cursor-ripple {
    display: none !important;
  }
  html, body, a, button, input, select, textarea, [role="button"], label, img {
    cursor: auto !important;
  }
}

/* 2. Creative Circle Pad Cursor Scroller Widget */
.circle-pad-widget {
  position: fixed;
  bottom: 2.2rem;
  left: 2.2rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toggle Collapse Button */
.circle-pad-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(18, 14, 11, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.circle-pad-toggle:hover {
  transform: scale(1.15) rotate(90deg);
  background: #f97316;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.6);
}

/* Main Inner Pad Frame */
.circle-pad-inner {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(28, 20, 16, 0.94) 0%, rgba(12, 10, 9, 0.98) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), inset 0 0 20px rgba(249, 115, 22, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.circle-pad-widget:hover .circle-pad-inner {
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), inset 0 0 25px rgba(249, 115, 22, 0.2);
}

/* SVG Progress Ring */
.circle-progress-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 5;
}

.progress-bar {
  fill: none;
  stroke: url(#circlePadGrad);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 389.5; /* 2 * PI * 62 */
  stroke-dashoffset: 389.5;
  transition: stroke-dashoffset 0.15s ease-out;
}

/* Directional Ticks */
.circle-ticks {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  pointer-events: none;
}

.tick {
  position: absolute;
  width: 2px;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  left: 50%;
  transform-origin: 50% 64px;
  transition: background 0.2s ease, height 0.2s ease, box-shadow 0.2s ease;
}

.tick.t-0 { transform: translateX(-50%) rotate(0deg); }
.tick.t-90 { transform: translateX(-50%) rotate(90deg); }
.tick.t-180 { transform: translateX(-50%) rotate(180deg); }
.tick.t-270 { transform: translateX(-50%) rotate(270deg); }

.tick.active {
  background: #38bdf8 !important;
  box-shadow: 0 0 8px #38bdf8;
  height: 8px !important;
}

/* Quick Step 4-Way Directional Buttons */
.circle-step-btn {
  position: absolute;
  width: 28px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.circle-step-btn.step-up {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.circle-step-btn.step-down {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.circle-step-btn.step-left {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 28px;
}

.circle-step-btn.step-right {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 28px;
}

.circle-step-btn:hover {
  background: rgba(249, 115, 22, 0.3);
  color: #fbbf24;
  border-color: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

/* Joystick Base & Knob */
.circle-joystick-base {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(12, 10, 9, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.circle-knob {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c1c16 0%, #17110e 100%);
  border: 1.5px solid #f97316;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.15);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.05s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 12;
}

.circle-knob:active, .circle-knob.dragging {
  cursor: grabbing;
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6), inset 0 0 8px rgba(56, 189, 248, 0.4);
}

.knob-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fbbf24 0%, #f97316 100%);
  box-shadow: 0 0 8px #f97316;
}

.knob-arrows {
  position: absolute;
  inset: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.knob-mid-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.knob-arrows span {
  transition: color 0.15s ease, transform 0.15s ease, text-shadow 0.15s ease;
}

.knob-arrows span.active {
  color: #38bdf8 !important;
  text-shadow: 0 0 6px #38bdf8;
  transform: scale(1.4);
}

/* HUD Info Pill */
.circle-hud-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 14, 11, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hud-section {
  color: #fbbf24;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hud-dir-badge {
  color: #f97316;
  font-weight: 700;
  padding: 1px 5px;
  background: rgba(249, 115, 22, 0.15);
  border-radius: 4px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-size: 0.62rem;
}

.hud-percent {
  color: #38bdf8;
  font-weight: 600;
}

/* Collapsed state */
.circle-pad-widget.collapsed .circle-pad-inner,
.circle-pad-widget.collapsed .circle-hud-info {
  display: none;
}

.circle-pad-widget.collapsed .circle-pad-toggle {
  transform: rotate(0deg);
  width: 44px;
  height: 44px;
  border-color: #f97316;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

/* Responsive adjustment for Mobile viewports */
@media (max-width: 768px) {
  .circle-pad-widget {
    bottom: 1.5rem;
    left: 1.2rem;
    transform: scale(0.85);
    transform-origin: bottom left;
  }
}