/* ===========================
   VARIABLES & BASE
=========================== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #0ea5e9;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --mid: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.15);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===========================
   PRELOADER
=========================== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   NAVBAR
=========================== */
#navbar {
  background: transparent;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 24px rgba(15,23,42,0.08);
}

#navbar.scrolled .navbar-brand .brand-letter-first,
#navbar.scrolled .navbar-brand .brand-reveal-first {
  color: var(--dark);
}

#navbar.scrolled .navbar-brand .brand-letter-last {
  color: var(--dark);
}

#navbar.scrolled .navbar-brand .brand-reveal-last {
  color: var(--dark);
}

#navbar.scrolled .nav-link {
  color: var(--dark-3);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: color var(--transition);
}

.brand-word {
  display: inline-flex;
  align-items: center;
}

.brand-word-last {
  margin-left: 0.08em;
  transform: translateX(-0.68em);
  transition: transform 0.45s ease;
}

.brand-letter {
  color: var(--white);
  position: relative;
  z-index: 2;
  transition: color var(--transition);
}

.brand-letter-last {
  color: var(--primary);
}

.brand-reveal {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  transition:
    max-width 0.42s ease,
    opacity 0.28s ease,
    transform 0.42s ease,
    color var(--transition);
  opacity: 0;
  transform: translateX(-0.18em);
  white-space: nowrap;
}

.brand-reveal-first {
  color: var(--white);
}

.brand-reveal-last {
  color: var(--white);
}

#navbar.brand-expanded .brand-word-last {
  transform: translateX(0);
}

#navbar.brand-expanded .brand-reveal-first {
  max-width: 5.1em;
  opacity: 1;
  transform: translateX(0);
}

#navbar.brand-expanded .brand-reveal-last {
  max-width: 3.2em;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.08s;
}

.brand-letter-first,
.brand-reveal-first { color: var(--white); }

.brand-letter-last { color: var(--primary); }

#navbar.scrolled .brand-letter-first,
#navbar.scrolled .brand-reveal-first { color: var(--dark); }

.nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

#navbar.scrolled .nav-link {
  color: var(--dark-3) !important;
}

.nav-link:hover {
  color: var(--white) !important;
  background: rgba(255,255,255,0.12);
}

#navbar.scrolled .nav-link:hover {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.toggler-icon {
  color: var(--white);
  font-size: 1.2rem;
}

#navbar.scrolled .toggler-icon {
  color: var(--dark);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
  box-shadow: none !important;
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary-custom {
  background: var(--primary);
  color: var(--white) !important;
  border: 2px solid var(--primary);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition);
}

.btn-outline-custom:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ===========================
   HERO
=========================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, #1a2744 50%, #0d2137 100%);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('sunrise-wesley.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.00);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 15, 29, 0.77) 0%, rgba(8, 15, 29, 0.63) 42%, rgba(8, 15, 29, 0.38) 72%, rgba(8, 15, 29, 0.5) 100%),
    linear-gradient(180deg, rgba(8, 15, 29, 0.16) 0%, rgba(8, 15, 29, 0.34) 100%),
    radial-gradient(circle at 20% 80%, rgba(37,99,235,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(249,115,22,0.16) 0%, transparent 38%);
}

/* Grid pattern */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero-grid {
  padding: 48px 0 32px;
}

.hero-intro {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-bottom: 14px;
}

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.02;
  margin: 14px 0 0px;
}

.hero-signature {
  display: block;
  width: min(100%, 620px);
  height: auto;
  margin: 0 0 0 -60px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.26));
}

.hero-accent {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 700px;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,0.78);
  margin-bottom: 30px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

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

.hero-scroll-down {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  animation: bounce 2s infinite;
  z-index: 2;
  text-decoration: none;
  transition: color var(--transition);
}

.hero-scroll-down:hover { color: var(--white); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===========================
   STATS BAR
=========================== */
.stats-bar {
  background: var(--dark-2);
  padding: 48px 0;
}

.stat-item {
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-number span {
  color: var(--primary);
}

.stat-label {
  color: var(--mid);
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 500;
}

/* ===========================
   SECTION UTILITIES
=========================== */
.section-padding { padding: 100px 0; }
.section-alt { background: var(--light); }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 20px;
}

.section-body {
  font-size: 1.05rem;
  color: var(--mid);
  margin-bottom: 16px;
}

/* ===========================
   ABOUT
=========================== */
.about-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 26px 24px 34px;
}

.about-img-placeholder {
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  border-radius: var(--radius-lg);
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 4rem;
}

.about-profile-img {
  width: 100%;
  max-width: 320px;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.18),
    0 0 0 14px rgba(255,255,255,0.55);
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s ease;
}

.about-img-placeholder p {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.about-photo-frame {
  position: relative;
  width: min(100%, 320px);
}

.about-photo-frame::before {
  content: '';
  position: absolute;
  inset: 10px -14px -12px 18px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.22), transparent 42%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.14), transparent 48%);
  filter: blur(8px);
  z-index: 1;
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity 0.7s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-shape {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition:
    opacity 0.55s ease,
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-shape-outline {
  inset: -18px 22px 26px -22px;
  border: 2px solid rgba(37, 99, 235, 0.22);
  border-radius: 36px;
  transform: translate(-14px, 18px) rotate(-18deg) scale(0.92);
}

.about-shape-ring {
  width: 138px;
  height: 138px;
  right: -34px;
  top: -28px;
  border: 2px solid rgba(14, 165, 233, 0.4);
  border-radius: 50%;
  transform: translate(18px, -12px) scale(0.78);
}

.about-shape-ring::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 50%;
}

.about-shape-arc {
  width: 150px;
  height: 150px;
  left: -36px;
  bottom: 20px;
  border: 3px solid transparent;
  border-left-color: rgba(37, 99, 235, 0.45);
  border-bottom-color: rgba(37, 99, 235, 0.45);
  border-radius: 50%;
  transform: translate(-18px, 20px) rotate(-10deg) scale(0.85);
}

.about-photo-frame.is-visible::before {
  opacity: 1;
  transform: scale(1);
}

.about-photo-frame.is-visible .about-profile-img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-photo-frame.is-visible .about-shape-outline {
  opacity: 1;
  transform: translate(0, 0) rotate(-8deg) scale(1);
  transition-delay: 0.08s;
}

.about-photo-frame.is-visible .about-shape-ring {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  transition-delay: 0.18s;
}

.about-photo-frame.is-visible .about-shape-arc {
  opacity: 1;
  transform: translate(0, 0) rotate(14deg) scale(1);
  transition-delay: 0.28s;
}

.about-photo-frame.is-visible .about-profile-img:hover {
  box-shadow:
    0 28px 72px rgba(15, 23, 42, 0.22),
    0 0 0 14px rgba(255,255,255,0.62);
}

@media (prefers-reduced-motion: reduce) {
  .about-photo-frame::before,
  .about-profile-img,
  .about-shape {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: 2px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  line-height: 1.4;
  z-index: 5;
}

.about-badge i { font-size: 1.4rem; }

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===========================
   WORK CARDS
=========================== */
.work-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-card-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 40px 20px;
  overflow: hidden;
}

.work-card-visual::before,
.work-card-visual::after {
  content: '';
  position: absolute;
  pointer-events: none;
  opacity: 0.45;
}

.plexia-visual::before {
  width: 210px;
  height: 210px;
  top: -42px;
  right: -52px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 34px;
  transform: rotate(18deg);
}

.plexia-visual::after {
  width: 170px;
  height: 170px;
  left: -54px;
  bottom: -48px;
  border: 2px solid rgba(255,255,255,0.14);
  border-radius: 50%;
}

.big2-visual::before {
  width: 240px;
  height: 240px;
  left: -92px;
  top: -66px;
  border: 2px solid rgba(255, 232, 138, 0.24);
  border-radius: 50%;
}

.big2-visual::after {
  width: 180px;
  height: 180px;
  right: -54px;
  bottom: -58px;
  border: 2px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  transform: rotate(22deg);
}

.skate-visual::before {
  width: 200px;
  height: 200px;
  top: -56px;
  right: -46px;
  border: 2px solid rgba(255, 236, 122, 0.22);
  border-radius: 50%;
}

.skate-visual::after {
  width: 220px;
  height: 120px;
  left: -64px;
  bottom: -30px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  transform: rotate(-12deg);
}

.intrahealth-visual::before {
  width: 220px;
  height: 220px;
  right: -58px;
  top: -52px;
  border: 2px solid rgba(147, 197, 253, 0.24);
  border-radius: 42px;
  transform: rotate(18deg);
}

.intrahealth-visual::after {
  width: 180px;
  height: 180px;
  left: -58px;
  bottom: -54px;
  border: 2px solid rgba(255,255,255,0.14);
  border-radius: 50%;
}

.plexia-visual {
  background:
    linear-gradient(135deg, rgba(22, 58, 95, 0.82), rgba(45, 106, 159, 0.7)),
    url('Plexia-Background.jpg');
  background-size: cover;
  background-position: center;
}

.big2-visual {
  background:
    linear-gradient(135deg, rgba(19, 73, 52, 0.76), rgba(44, 120, 74, 0.62)),
    url('Big2Tracker-background.jpg');
  background-size: cover;
  background-position: center;
}

.skate-visual {
  background:
    linear-gradient(135deg, rgba(17, 54, 52, 0.78), rgba(34, 90, 79, 0.68)),
    url('SkateBooks-background.jpg');
  background-size: cover;
  background-position: center;
}

.intrahealth-visual {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(37, 99, 235, 0.66)),
    url('IntrahealthBackground.jpg');
  background-size: cover;
  background-position: center;
}

.work-card-icon {
  font-size: 3.5rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.work-card-logo-wrap {
  width: min(100%, 270px);
  padding: 22px 20px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
}

.work-card-logo {
  display: block;
  width: 100%;
  height: auto;
}

.plexia-logo {
  width: 150%;
  max-width: none;
  margin: -24% 0 -24% -21%;
}

.plexia-visual .work-card-logo-wrap {
  width: min(100%, 300px);
  padding: 0;
  overflow: hidden;
  background: rgba(12, 33, 54, 0.42);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 18px 40px rgba(8, 23, 38, 0.28);
}

.big2-logo-wrap {
  width: min(100%, 330px);
  padding: 10px;
  border-radius: 24px;
}

.big2-logo {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
}

.big2-visual .work-card-logo-wrap {
  background: rgba(19, 52, 37, 0.34);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 18px 40px rgba(18, 39, 26, 0.26);
}

.intrahealth-logo-wrap {
  width: min(100%, 300px);
  padding: 18px 20px;
  border-radius: 20px;
}

.intrahealth-logo {
  width: 100%;
  max-width: 100%;
}

.intrahealth-visual .work-card-logo-wrap {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.26);
}

.skate-logo-wrap {
  width: min(100%, 200px);
  padding: 10px;
  border-radius: 28px;
}

.skate-logo {
  width: 100%;
  max-width: 100%;
  border-radius: 22px;
}

.skate-visual .work-card-logo-wrap {
  background: rgba(14, 44, 41, 0.34);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 18px 40px rgba(11, 31, 29, 0.26);
}

.work-card-tag {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 2;
}

.work-card-body {
  padding: 36px 40px;
}

.work-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.work-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.work-subtitle {
  color: var(--mid);
  font-size: 0.9rem;
  margin: 4px 0 0;
}

.work-badge {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-badge-acquired { background: #d1fae5; color: #065f46; }
.work-badge-live     { background: #dbeafe; color: #1e40af; }
.work-badge-prototype { background: #fef3c7; color: #92400e; }
.work-badge-progress { background: #e0e7ff; color: #3730a3; }

.work-desc {
  color: var(--mid);
  margin-bottom: 20px;
  font-size: 0.975rem;
}

.work-links {
  margin-bottom: 24px;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.work-link:hover {
  background: #cfe2ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.work-timeline {
  font-size: 0.85rem;
  color: var(--mid);
  font-weight: 500;
}

.work-timeline i { color: var(--primary); }

.work-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--light);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.875rem;
  color: var(--dark-3);
  line-height: 1.5;
}

.work-highlight i { margin-top: 2px; flex-shrink: 0; }

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

.work-tags span {
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--dark-3);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===========================
   SERVICES
=========================== */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: background var(--transition), color var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

.service-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--mid);
  font-size: 0.925rem;
  margin: 0;
  line-height: 1.6;
}

/* ===========================
   CREDIBILITY
=========================== */
.cred-list { display: flex; flex-direction: column; gap: 20px; }

.cred-item {
  display: flex;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.cred-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.cred-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cred-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cred-text strong {
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.cred-text span {
  color: var(--mid);
  font-size: 0.875rem;
}

.cred-certs {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--mid);
  letter-spacing: 0.02em;
}

/* ===========================
   CONTACT
=========================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 2px;
}

.contact-info-item a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.contact-info-item a:hover { color: var(--primary); }

.contact-form .form-control {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: var(--white);
}

.contact-form .form-control::placeholder { color: #94a3b8; }

.contact-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-honeypot input {
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: 0;
}

.contact-form-status {
  min-height: 1.5rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form-status.is-success { color: #047857; }
.contact-form-status.is-error { color: #b91c1c; }

@media (max-width: 991.98px) {
  body.mobile-simplified-motion * {
    animation: none !important;
    transition: none !important;
  }

  body.mobile-simplified-motion #preloader,
  body.mobile-simplified-motion #preloader.hidden,
  body.mobile-simplified-motion .spinner,
  body.mobile-simplified-motion .hero-scroll-down,
  body.mobile-simplified-motion [data-aos] {
    animation: none !important;
    transition: none !important;
  }

  body.mobile-simplified-motion #navbar,
  body.mobile-simplified-motion .navbar-brand,
  body.mobile-simplified-motion .about-photo-frame::before,
  body.mobile-simplified-motion .about-profile-img,
  body.mobile-simplified-motion .about-shape,
  body.mobile-simplified-motion .about-photo-frame.is-visible .about-shape-outline,
  body.mobile-simplified-motion .about-photo-frame.is-visible .about-shape-ring,
  body.mobile-simplified-motion .about-photo-frame.is-visible .about-shape-arc {
    animation: none !important;
  }

  body.mobile-simplified-motion #navbar {
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition) !important;
  }

  body.mobile-simplified-motion .navbar-brand {
    transition: color var(--transition) !important;
  }

  body.mobile-simplified-motion .brand-word-last {
    transition: transform 0.45s ease !important;
  }

  body.mobile-simplified-motion .brand-letter {
    transition: color var(--transition) !important;
  }

  body.mobile-simplified-motion .brand-reveal {
    transition:
      max-width 0.42s ease,
      opacity 0.28s ease,
      transform 0.42s ease,
      color var(--transition) !important;
  }

  body.mobile-simplified-motion .about-photo-frame::before {
    transition:
      opacity 0.7s ease,
      transform 1s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  body.mobile-simplified-motion .about-profile-img {
    transition:
      opacity 0.7s ease,
      transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.6s ease !important;
  }

  body.mobile-simplified-motion .about-shape {
    transition:
      opacity 0.55s ease,
      transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .work-badge-acquired,
  .work-badge-live,
  .work-badge-progress,
  .work-badge-prototype {
    display: none !important;
  }

  .project-highlights {
    margin: 0 0 1.5rem;
    padding: 14px;
    border-radius: 16px;
    background: var(--light);
    row-gap: 2px !important;
  }

  .project-highlights > [class*='col-'] {
    padding-left: 0;
    padding-right: 0;
  }

  .project-highlights .work-highlight {
    background: transparent;
    border-radius: 0;
    padding: 4px 0;
  }

}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--dark);
  padding: 48px 0;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
}

.footer-brand .brand-letter-first { color: var(--white); }
.footer-brand .brand-letter-last  { color: var(--primary); }

.footer-brand-last {
  margin-left: -0.08em;
}

.footer-tagline {
  color: var(--mid);
  font-size: 0.875rem;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  margin: 0;
}

/* ===========================
   SCROLL TO TOP
=========================== */
#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 999;
  pointer-events: none;
}

#scrollTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTop:hover { background: var(--primary-dark); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 12px;
  }
  .nav-link { color: rgba(255,255,255,0.85) !important; }
  #navbar.scrolled .nav-link { color: rgba(255,255,255,0.85) !important; }
  .hero-grid {
    padding: 72px 0 32px;
    row-gap: 40px;
  }
  .about-img-wrap { padding: 18px 12px 28px; }
  .about-badge { bottom: -16px; right: 10px; }
}

@media (max-width: 767px) {
  .section-padding { padding: 72px 0; }
  .stats-bar { display: none; }
  .work-card-body { padding: 24px 20px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-bottom: none; }
  .footer-social { justify-content: flex-start; }
  .footer-copy { text-align: left; }
  .hero-bg-image { background-position: 80% center; }
  .hero-content::before {
    content: '';
    position: absolute;
    top: 258px;
    left: 10px;
    width: min(220px, 58vw);
    aspect-ratio: 1;
    border: 2px solid rgba(191, 219, 254, 0.072);
    border-radius: 28px;
    transform: rotate(12deg);
    pointer-events: none;
    z-index: -1;
  }
  .hero-section::after {
    content: '';
    position: absolute;
    top: 34px;
    right: 28px;
    width: min(400px, 82vw);
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(50%, -50%);
    background:
      radial-gradient(circle, transparent 0 17%, rgba(191, 219, 254, 0.025) 17.2% 17.35%, transparent 17.55%),
      radial-gradient(circle, transparent 0 24%, rgba(255,255,255,0.032) 24.2% 24.35%, transparent 24.55%),
      radial-gradient(circle, transparent 0 31%, rgba(191, 219, 254, 0.038) 31.2% 31.35%, transparent 31.55%),
      radial-gradient(circle, transparent 0 38%, rgba(255,255,255,0.044) 38.2% 38.35%, transparent 38.55%),
      radial-gradient(circle, transparent 0 45%, rgba(191, 219, 254, 0.052) 45.2% 45.35%, transparent 45.55%),
      radial-gradient(circle, transparent 0 52%, rgba(255,255,255,0.058) 52.2% 52.35%, transparent 52.55%),
      radial-gradient(circle, transparent 0 59%, rgba(191, 219, 254, 0.064) 59.2% 59.35%, transparent 59.55%),
      radial-gradient(circle, transparent 0 66%, rgba(255,255,255,0.07) 66.2% 66.35%, transparent 66.55%),
      radial-gradient(circle, transparent 0 73%, rgba(191, 219, 254, 0.078) 73.2% 73.35%, transparent 73.55%),
      radial-gradient(circle, transparent 0 80%, rgba(255,255,255,0.086) 80.2% 80.35%, transparent 80.55%);
    pointer-events: none;
    z-index: 1;
  }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-primary-custom,
  .hero-cta .btn-outline-custom { width: 100%; justify-content: center; }
  .hero-grid {
    padding: 56px 0 28px;
    row-gap: 32px;
  }
  .hero-intro {
    font-size: 0.82rem;
    margin-bottom: 10px;
  }
  .hero-signature {
    width: min(100%, 440px);
    margin-left: -8px;
  }
  .hero-eyebrow {
    font-size: 0.98rem;
    line-height: 1.5;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .about-photo-frame { width: min(100%, 290px); }
  .about-profile-img {
    height: 340px;
    box-shadow:
      0 18px 40px rgba(15, 23, 42, 0.16),
      0 0 0 10px rgba(255,255,255,0.5);
  }
  .about-shape-outline { inset: -12px 18px 18px -16px; }
  .about-shape-ring {
    width: 112px;
    height: 112px;
    right: -18px;
    top: -18px;
  }
  .about-shape-arc {
    width: 118px;
    height: 118px;
    left: -20px;
    bottom: 26px;
  }
}
