/* ==========================================================================
   VECTO PSD PORTFOLIO STYLESHEET
   Author: Surya Kiran (Vecto PSD)
   Description: Modern dark-theme CSS with interactive grid background,
                vivid mouse spotlight illumination, custom cursor & lerp follower,
                and enhanced hero portrait spotlight mask reveal.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & RESET
   -------------------------------------------------------------------------- */
:root {
  --bg: #05050D;
  --bg-2: #09091A;
  --bg-card: rgba(20, 20, 42, 0.85);
  --purple: #8067FF;
  --purple-light: #B8A8FF;
  --purple-glow: rgba(128, 103, 255, 0.45);
  --white: #F7F7FF;
  --muted: #A8A5C5;
  --border: rgba(128, 103, 255, 0.25);
  --border-hover: rgba(155, 124, 255, 0.55);
  --ease: cubic-bezier(.22, .68, 0, 1);
  --font-body: 'Space Grotesk', sans-serif;
  --font-heading: 'Sora', sans-serif;
  --mouse-x: 50vw;
  --mouse-y: 50vh;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (pointer: fine) {
  body, a, button, input, select, textarea, .work-card, .blog-card, .filter-btn, .blog-filter-btn, .service-card, .contact-card {
    cursor: none !important;
  }
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s var(--ease);
}

ul {
  list-style: none;
}

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

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

button {
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 4px;
}

::selection {
  background: var(--purple);
  color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* --------------------------------------------------------------------------
   2. CUSTOM INTERACTIVE CURSOR & FOLLOWER
   -------------------------------------------------------------------------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--purple-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-50%, -50%, 0);
  box-shadow: 0 0 12px var(--purple-light);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: none;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(184, 168, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  background: rgba(128, 103, 255, 0.08);
  backdrop-filter: blur(2px);
  box-shadow: 0 0 24px rgba(128, 103, 255, 0.4);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
  display: none;
}

@media (pointer: fine) {
  .cursor-dot, .cursor-follower {
    display: block;
  }
}

/* Enhanced Hover State (Higher Opacity & Glow) */
body.hovering .cursor-dot {
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  box-shadow: 0 0 20px #FFFFFF;
}

body.hovering .cursor-follower {
  width: 68px;
  height: 68px;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(184, 168, 255, 0.22);
  box-shadow: 0 0 40px rgba(184, 168, 255, 0.65);
}

/* --------------------------------------------------------------------------
   3. INTERACTIVE GRID BACKGROUND & MOUSE SPOTLIGHT ILLUMINATION
   -------------------------------------------------------------------------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Base Grid Pattern */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(128, 103, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 103, 255, 0.09) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 95%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 95%);
}

/* Increased Opacity Mouse Grid Spotlight Overlay */
.bg-mouse-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    650px circle at var(--mouse-x) var(--mouse-y),
    rgba(128, 103, 255, 0.28) 0%,
    rgba(128, 103, 255, 0.10) 45%,
    transparent 80%
  );
  pointer-events: none;
  will-change: background;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.bg-glow--1 {
  width: 520px;
  height: 520px;
  top: -10%;
  right: -6%;
  background: radial-gradient(circle, rgba(128, 103, 255, 0.45), transparent 70%);
}

.bg-glow--2 {
  width: 420px;
  height: 420px;
  bottom: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(184, 168, 255, 0.3), transparent 70%);
}

/* --------------------------------------------------------------------------
   4. HEADER NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw;
  background: rgba(5, 5, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}

.navbar.scrolled {
  padding: 12px 5vw;
  background: rgba(5, 5, 13, 0.92);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo__img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(128, 103, 255, 0.5));
}

.nav-logo__text {
  font-weight: 700;
  font-size: 18px;
  font-family: var(--font-heading);
}

.accent {
  color: var(--purple-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 0;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--purple-light);
  transition: width 0.25s var(--ease);
  border-radius: 2px;
}

.nav-item:hover, .nav-item.active {
  color: var(--white);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-talk {
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), #6a54e0);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 20px rgba(128, 103, 255, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-talk:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(128, 103, 255, 0.65);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 200;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 13, 0.98);
  backdrop-filter: blur(14px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
  visibility: hidden;
}

.mobile-nav.open {
  transform: translateY(0);
  visibility: visible;
}

.mobile-item {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION & ENHANCED SPOTLIGHT PORTRAIT
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5vw 60px;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--purple-light);
  margin-bottom: 24px;
  background: rgba(128, 103, 255, 0.08);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 10px var(--purple-light);
  animation: dotPulse 1.8s ease-in-out infinite;
}

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

.hero-subtext {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 27px);
  color: var(--purple-light);
  margin-bottom: 12px;
}

.hero-heading {
  font-weight: 800;
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.line-white {
  color: var(--white);
  display: block;
}

.line-gradient {
  display: block;
  background: linear-gradient(90deg, var(--purple-light), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-desc {
  max-width: 580px;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 50px;
}

.btn {
  padding: 15px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #6a54e0);
  color: var(--white);
  box-shadow: 0 0 24px rgba(128, 103, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 34px rgba(128, 103, 255, 0.7);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(128, 103, 255, 0.12);
  transform: translateY(-3px);
  border-color: var(--purple-light);
}

.metrics {
  display: flex;
  align-items: center;
  gap: 0;
}

.metric {
  padding: 0 24px;
}

.metric:first-child {
  padding-left: 0;
}

.metric + .metric {
  border-left: 1px solid var(--border);
}

.metric__num {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--white);
  text-shadow: 0 0 18px rgba(128, 103, 255, 0.5);
  line-height: 1;
}

.metric__label {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.portrait-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 103, 255, 0.55), transparent 70%);
  filter: blur(50px);
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.06); }
}

.portrait-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: 0 0 50px rgba(128, 103, 255, 0.25) inset;
  animation: spinSlow 14s linear infinite;
  will-change: transform;
  pointer-events: none;
  z-index: 1;
}

.portrait-ring::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #64F4FF;
  border-radius: 50%;
  box-shadow: 0 0 18px #64F4FF, 0 0 35px var(--purple-light);
  transform: translateX(-50%);
}

.portrait-ring::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--purple-light);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--purple-light);
  transform: translateX(-50%);
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Layered Spotlight Hero Portrait Box with Vivid Opacity Reveal */
.hero-portrait {
  position: relative;
  z-index: 3;
  width: min(380px, 84%);
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 45px rgba(128, 103, 255, 0.4);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .hero-portrait:hover {
    border-color: rgba(184, 168, 255, 0.85);
    transform: scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 60px rgba(184, 168, 255, 0.55);
  }
}

.hero-img-base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Enhanced Radial Spotlight Mask with Higher Center Opacity & Soft Outer Glow */
.hero-img-spotlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  -webkit-mask-image: radial-gradient(circle 160px at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(circle 160px at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0) 100%);
  filter: brightness(1.15) contrast(1.08);
}

.hero-portrait.spotlight-active .hero-img-spotlight {
  opacity: 1;
}

.float-card {
  position: absolute;
  z-index: 4;
  padding: 16px 20px;
  background: rgba(9, 9, 26, 0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(128, 103, 255, 0.15);
  animation: floatCard 4.5s ease-in-out infinite;
}

.float-card--top {
  top: 4%;
  right: -2%;
  animation-delay: 0s;
}

.float-card--bottom {
  bottom: 6%;
  left: -4%;
  animation-delay: -2.2s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-card__num {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--purple-light);
  text-shadow: 0 0 14px rgba(128, 103, 255, 0.6);
  line-height: 1;
}

.float-card__label {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   6. GENERAL SECTION SHELL
   -------------------------------------------------------------------------- */
section.block {
  position: relative;
  z-index: 1;
  padding: 110px 5vw;
  overflow: hidden;
}

.block__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 55% 55% at 50% 0%, rgba(128, 103, 255, 0.08), transparent 70%),
    linear-gradient(rgba(128, 103, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 103, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 55px 55px, 55px 55px;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}

.label span {
  display: inline-block;
  width: 45px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), transparent);
}

.heading {
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
}

.intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   7. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.about-visual {
  position: relative;
}

.about-visual__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(128, 103, 255, 0.28), transparent 70%);
  filter: blur(50px);
  z-index: 0;
}

.about-visual__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1/1;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(128, 103, 255, 0.16), rgba(9, 9, 26, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(128, 103, 255, 0.25);
}

.about-visual__frame img {
  width: 60%;
  height: auto;
  object-fit: contain;
}

.work-badge {
  position: absolute;
  top: 18px;
  right: -10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), #684FE8);
  box-shadow: 0 10px 30px rgba(128, 103, 255, 0.35);
}

.exp-card {
  position: absolute;
  bottom: 18px;
  left: -15px;
  z-index: 2;
  padding: 16px 22px;
  border-radius: 18px;
  background: rgba(21, 20, 43, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.exp-card__num {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--purple-light);
  line-height: 1;
}

.exp-card__label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #C3C0D8;
  margin-bottom: 16px;
}

.highlight {
  color: var(--purple-light);
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.feature-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 36px rgba(128, 103, 255, 0.18);
}

.feature-card__icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.feature-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   8. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-head {
  text-align: center;
  margin-bottom: 50px;
}

.services-head .label {
  justify-content: center;
}

.services-head .heading {
  max-width: 760px;
  margin: 0 auto;
}

.services-head .intro {
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 26px 22px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(128, 103, 255, 0.2);
}

.service-card__icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.service-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--purple-light);
  background: rgba(128, 103, 255, 0.12);
  border: 1px solid rgba(128, 103, 255, 0.28);
}

/* --------------------------------------------------------------------------
   9. PORTFOLIO WORK SECTION (INTERACTIVE FILTER & MODAL)
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn, .blog-filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(20, 20, 42, 0.6);
  transition: all 0.25s var(--ease);
}

.filter-btn:hover, .filter-btn.active,
.blog-filter-btn:hover, .blog-filter-btn.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), #6a54e0);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(128, 103, 255, 0.4);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), opacity 0.35s var(--ease);
}

.work-card.hide {
  display: none;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 40px rgba(128, 103, 255, 0.25);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 13, 0.92) 0%, rgba(5, 5, 13, 0.2) 65%);
  z-index: 1;
  transition: background 0.3s var(--ease);
}

.work-card:hover .work-card__overlay {
  background: linear-gradient(to top, rgba(5, 5, 13, 0.96) 0%, rgba(128, 103, 255, 0.25) 100%);
}

.work-card__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.work-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 6px;
  display: block;
}

.work-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
}

.work-card__desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.btn-details {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.25s var(--ease);
}

.work-card:hover .btn-details {
  transform: translateX(4px);
  color: var(--white);
}

/* Work Card Background Gradients */
.work-card--1 { background: linear-gradient(150deg, #3a2b8f, #1a1638); }
.work-card--2 { background: linear-gradient(150deg, #8067FF, #2a2260); }
.work-card--3 { background: linear-gradient(150deg, #2f2a5c, #0e0d22); }
.work-card--4 { background: linear-gradient(150deg, #5a45c9, #171432); }
.work-card--5 { background: linear-gradient(150deg, #241f4a, #6a54e0); }
.work-card--6 { background: linear-gradient(150deg, #4632a8, #100e24); }

/* Modal Styling */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 5, 13, 0.85);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: #0D0D22;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.92);
  transition: transform 0.3s var(--ease);
  max-height: 90vh;
  overflow-y: auto;
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 32px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

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

.modal-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--purple-light);
}

.modal-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  margin-top: 4px;
  margin-bottom: 20px;
}

.modal-banner {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--purple), #241f4a);
}

.modal-details-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  font-size: 14.5px;
  color: #C3C0D8;
}

.modal-details-grid h3 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 8px;
}

.modal-specs div {
  margin-bottom: 8px;
}

.modal-specs strong {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   10. PROCESS SECTION
   -------------------------------------------------------------------------- */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.process-line {
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  z-index: 0;
  background: linear-gradient(90deg, var(--purple), #927bff, var(--purple));
  box-shadow: 0 0 10px rgba(128, 103, 255, 0.4);
}

.step {
  position: relative;
  z-index: 2;
  text-align: center;
}

.step-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.step-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #171631, #101021);
  border: 2px solid var(--purple);
  font-size: 26px;
  box-shadow: 0 0 15px rgba(128, 103, 255, 0.15);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step:hover .step-icon {
  transform: translateY(-6px) scale(1.05);
  border-color: var(--purple-light);
  box-shadow: 0 0 25px rgba(128, 103, 255, 0.4);
}

.step-number {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(128, 103, 255, 0.4);
}

.step-content h3 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}

.step-content p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   11. TOOLKIT SECTION
   -------------------------------------------------------------------------- */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.tool-card {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(24, 23, 48, 0.95), rgba(18, 18, 38, 0.95));
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(128, 103, 255, 0.08);
  border: 1px solid rgba(128, 103, 255, 0.16);
  font-size: 24px;
}

.tool-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   12. BLOG SECTION & BLOG READER MODAL STYLING
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.35s var(--ease);
}

.blog-card.hide {
  display: none;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 45px rgba(128, 103, 255, 0.22);
}

.blog-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.blog-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--purple-light);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(128, 103, 255, 0.12);
}

.blog-card__meta {
  font-size: 12px;
  color: var(--muted);
}

.blog-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-card__excerpt {
  font-size: 14.5px;
  line-height: 1.65;
  color: #C3C0D8;
  margin-bottom: 22px;
  flex-grow: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(128, 103, 255, 0.15);
}

.blog-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.blog-card__author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.btn-read-blog {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--purple-light);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.blog-card:hover .btn-read-blog {
  transform: translateX(4px);
  color: var(--white);
}

.blog-modal-content {
  max-width: 820px;
}

.blog-modal-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 20px;
}

.blog-modal-body {
  font-size: 16px;
  line-height: 1.8;
  color: #D6D3E8;
}

.blog-modal-body p {
  margin-bottom: 18px;
}

.blog-modal-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin: 32px 0 14px;
}

.blog-modal-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 24px 0 10px;
}

.blog-modal-body ul, .blog-modal-body ol {
  margin: 0 0 20px 22px;
}

.blog-modal-body li {
  margin-bottom: 8px;
}

.blog-callout {
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(128, 103, 255, 0.1);
  border: 1px solid var(--border);
  color: #F0EDFF;
  font-size: 15.5px;
}

.blog-author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 40px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(20, 20, 42, 0.9);
  border: 1px solid var(--border);
}

.blog-author-box img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-author-box strong {
  display: block;
  font-size: 15px;
  color: var(--white);
}

.blog-author-box p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. TESTIMONIALS SECTION
   -------------------------------------------------------------------------- */
.testimonial-slider {
  max-width: 760px;
  margin: 40px auto 0;
  position: relative;
}

.testimonial-card {
  padding: 36px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  display: none;
  animation: fadeIn 0.4s var(--ease);
}

.testimonial-card.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-quote {
  font-size: 18px;
  line-height: 1.7;
  color: #E2E0F5;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author strong {
  display: block;
  font-size: 16px;
  color: var(--white);
}

.testimonial-author span {
  font-size: 13px;
  color: var(--muted);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.testimonial-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(20, 20, 42, 0.8);
  color: var(--white);
  font-size: 18px;
  transition: all 0.25s var(--ease);
}

.testimonial-controls button:hover {
  background: var(--purple);
  border-color: transparent;
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   14. SEO CONTENT BLOCK
   -------------------------------------------------------------------------- */
.SEO-content-section {
  border-top: 1px solid rgba(128, 103, 255, 0.12);
  border-bottom: 1px solid rgba(128, 103, 255, 0.12);
}

.seo-text h3 {
  font-size: 20px;
  color: var(--white);
  margin-top: 28px;
  margin-bottom: 10px;
}

.seo-text p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.seo-text ul {
  margin: 12px 0 20px 20px;
  color: var(--muted);
}

.seo-text li {
  margin-bottom: 8px;
  list-style-type: disc;
}

/* --------------------------------------------------------------------------
   15. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
  margin-top: 50px;
}

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

.contact-card {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

a.contact-card:hover {
  transform: translateX(6px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(128, 103, 255, 0.1);
  border: 1px solid rgba(128, 103, 255, 0.25);
  font-size: 22px;
}

.contact-card-text span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-card-text strong {
  color: var(--white);
  font-size: 15px;
  word-break: break-word;
}

.form-box {
  padding: 36px;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.form-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.form-box > p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(128, 103, 255, 0.2);
  background: rgba(8, 8, 23, 0.8);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

input::placeholder, textarea::placeholder {
  color: #66647D;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(128, 103, 255, 0.15);
  outline: none;
}

select option {
  background: #15142A;
  color: var(--white);
}

textarea {
  resize: vertical;
}

.error-msg {
  display: block;
  font-size: 11.5px;
  color: #FF5C8A;
  margin-top: 4px;
  min-height: 16px;
}

.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), #6a54e0);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 0 24px rgba(128, 103, 255, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(128, 103, 255, 0.6);
}

.form-status {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
  border-radius: 8px;
  padding: 10px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ADE80;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(128, 103, 255, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(128, 103, 255, 0.8);
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: #04040A;
  color: var(--white);
  padding: 70px 5vw 24px;
  border-top: 1px solid rgba(128, 103, 255, 0.15);
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.footer-desc {
  max-width: 340px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0E0D22;
  font-size: 16px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-socials a:hover {
  transform: translateY(-3px);
  border-color: var(--purple-light);
}

.footer-title {
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(128, 103, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666480;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1150px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .toolkit-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { order: -1; min-height: 360px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process-line { display: none; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 100px 6vw 40px; }
  .hero-heading { font-size: clamp(34px, 10vw, 48px); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .metrics { justify-content: space-between; width: 100%; }
  .metric { padding: 0 8px; flex: 1; text-align: center; }
  .metric:first-child { padding-left: 8px; }
  .float-card { display: none; }
  section.block { padding: 70px 6vw; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .toolkit-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal-details-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

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


/* --------------------------------------------------------------------------
   18. PHONE PERFORMANCE & DESKTOP-TO-MOBILE RESPONSIVE FIXES
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .navbar {
    padding: 10px 16px;
    height: 60px;
  }
  .nav-logo {
    gap: 8px;
    flex-shrink: 0;
  }
  .nav-logo__img {
    width: 32px;
    height: 32px;
    min-width: 32px;
    object-fit: contain;
  }
  .nav-logo__text {
    font-size: 16px;
    white-space: nowrap;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn {
    padding: 7px 14px;
    font-size: 12px;
  }

  .hero {
    padding: 76px 16px 30px;
    min-height: auto;
  }
  .hero-inner {
    gap: 16px;
  }
  .hero-right {
    min-height: 260px;
    max-height: 300px;
    order: -1;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-portrait-frame {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }
  .hero-badge {
    font-size: 11px;
    padding: 4px 12px;
    margin-bottom: 12px;
    display: inline-flex;
  }
  .hero-heading {
    font-size: clamp(24px, 7vw, 36px);
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
    word-break: break-word;
  }
  .hero-desc {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .metrics {
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    width: 100%;
  }
  .metric-num {
    font-size: 22px;
  }
  .metric-label {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .navbar {
    padding: 8px 12px;
  }
  .nav-logo__text {
    font-size: 14px;
  }
  .hero-heading {
    font-size: 22px;
  }
  .hero-portrait-frame {
    width: 200px;
    height: 200px;
  }
}


/* --------------------------------------------------------------------------
   19. FIXED PHONE ASPECT RATIO & ZERO-MOVEMENT MOBILE LAYOUT
   -------------------------------------------------------------------------- */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative;
  touch-action: pan-y;
}

@media (max-width: 1024px) {
  .bg-mouse-glow {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .hero-portrait {
    width: 230px !important;
    height: 230px !important;
    aspect-ratio: 1 / 1 !important;
    max-width: 230px !important;
    max-height: 230px !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
    border-radius: 36px !important;
    transform: none !important;
    transition: none !important;
  }
  
  .hero-heading {
    font-size: clamp(24px, 7.5vw, 34px) !important;
    line-height: 1.18 !important;
    margin-bottom: 14px !important;
    letter-spacing: -0.4px !important;
  }

  .line-white, .line-gradient {
    display: block !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 380px) {
  .hero-portrait {
    width: 200px !important;
    height: 200px !important;
    aspect-ratio: 1 / 1 !important;
    max-width: 200px !important;
    max-height: 200px !important;
  }
  
  .hero-heading {
    font-size: 22px !important;
  }
}


/* --------------------------------------------------------------------------
   20. PRECISION MOBILE PHONE IMAGE ALIGNMENT & SIZING FIXES (<1024px & <640px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-right {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto 24px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  
}

@media (max-width: 640px) {
  /* Hero Image Precision Centering & Sizing */
  .hero-right {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto 16px !important;
    padding: 10px 0 !important;
    position: relative !important;
  }

  

  .hero-portrait {
    width: 220px !important;
    height: 220px !important;
    aspect-ratio: 1 / 1 !important;
    max-width: 220px !important;
    max-height: 220px !important;
    margin: 0 auto !important;
    display: block !important;
    position: relative !important;
    z-index: 3 !important;
    border-radius: 32px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(128, 103, 255, 0.3) !important;
  }

  .hero-img-base, .hero-img-spotlight {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
  }

  .float-card {
    display: none !important;
  }

  /* About Section Image Frame Centering */
  .about-visual {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto 30px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
  }

  .about-visual__frame {
    width: 240px !important;
    height: 240px !important;
    margin: 0 auto !important;
  }

  .work-badge {
    right: 0 !important;
    top: -10px !important;
  }

  .exp-card {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: -16px !important;
  }

  /* Card Image Precision Alignment */
  .work-card__img-box, .blog-card__img-box {
    width: 100% !important;
    margin: 0 auto !important;
  }

  .work-card__img-box img, .blog-card__img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}


/* --------------------------------------------------------------------------
   21. DESKTOP VS MOBILE HIGH-END RESPONSIVE ISOLATION
   -------------------------------------------------------------------------- */
.hero-line-row {
  display: block;
}

@media (min-width: 1025px) {
  .hero-line-row {
    display: block;
    white-space: nowrap;
  }
  
  .hero-line-row .line-white,
  .hero-line-row .line-gradient {
    display: inline-block !important;
    margin-right: 0.22em;
    white-space: nowrap !important;
  }

  .hero-heading {
    font-size: clamp(42px, 4.4vw, 68px) !important;
    line-height: 1.12 !important;
    margin-bottom: 24px !important;
    letter-spacing: -0.02em !important;
  }

  .hero-portrait {
    width: 380px !important;
    height: 475px !important;
    aspect-ratio: 4 / 5 !important;
    max-width: 380px !important;
    max-height: 475px !important;
    border-radius: 28px !important;
    margin: 0 auto !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 45px rgba(128, 103, 255, 0.4) !important;
  }

  

  .float-card {
    display: block !important;
  }

  .bg-mouse-glow {
    display: block !important;
  }
}

@media (max-width: 640px) {
  .hero-line-row {
    display: flex !important;
    flex-direction: column !important;
  }

  .hero-line-row .line-white,
  .hero-line-row .line-gradient {
    display: block !important;
    margin-right: 0 !important;
  }
}


/* Fix portrait ring dimensions in media queries without blocking rotation animation */
@media (max-width: 1024px) {
  .portrait-ring {
    width: 320px !important;
    height: 320px !important;
    inset: 0 !important;
    margin: auto !important;
  }
}

@media (max-width: 640px) {
  .portrait-ring {
    width: 260px !important;
    height: 260px !important;
    inset: 0 !important;
    margin: auto !important;
  }
}
