/* =============================================
   KemotechTz — style.css
   Main stylesheet
   ============================================= */

/* --- CSS Variables --- */
:root {
  --bg-primary:     #f0edf8;
  --bg-secondary:   #e6dff5;
  --bg-card:        #ffffff;
  --bg-footer:      #1e1b4b;
  --border-color:   #c8bae8;

  --accent-purple:  #1e1b4b;
  --accent-cyan:    #7c3aed;
  --accent-glow:    rgba(124, 58, 237, 0.12);

  --text-primary:   #1e1b4b;
  --text-secondary: #3d3180;
  --text-muted:     #7468a8;

  --font-main: 'Inter', sans-serif;

  --nav-height: 64px;
  --transition: 0.25s ease;
  --radius:     12px;
  --radius-lg:  18px;

  --topbar-bg:      rgba(240, 237, 248, 0.98);
  --sidebar-bg:     rgba(12, 8, 45, 0.97);
  --sidebar-border: rgba(124, 58, 237, 0.22);
  --sidebar-text:   rgba(255, 255, 255, 0.9);
  --sidebar-muted:  rgba(255, 255, 255, 0.45);
  --sidebar-hover:  rgba(124, 58, 237, 0.18);
  --sidebar-active: rgba(124, 58, 237, 0.30);
  --sidebar-glow:   0 0 12px rgba(124, 58, 237, 0.45);
  --sidebar-width:  300px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip;
}

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

ul {
  list-style: none;
}

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

/* --- Accent text utility --- */
.gradient-text {
  color: var(--accent-purple);
}

/* =============================================
   TOP BAR — minimal fixed header
   ============================================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 2000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
}

.topbar.scrolled {
  box-shadow: 0 2px 20px rgba(30, 27, 75, 0.10);
}

.topbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
  user-select: none;
}

.topbar-logo .logo-accent {
  color: var(--accent-cyan);
}

/* Menu toggle button — always visible on all screen sizes */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 8px;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.menu-btn:hover {
  background: var(--accent-glow);
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 2rem) 5% 4rem;
  overflow: hidden;
}

/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

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

/* Dark overlay so text stays readable */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(240, 237, 248, 0.82) 0%,
    rgba(240, 237, 248, 0.55) 50%,
    rgba(240, 237, 248, 0.75) 100%
  );
}

/* Hero inner layout — mobile-first: stacked, centered */
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Hero Content */
.hero-content {
  flex: 1;
  max-width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.20);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1.25rem;
  color: #1e1b4b;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.25rem;
}

/* Hero CTA buttons */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-purple);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--accent-purple);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Hero Visual (right) */
.hero-visual {
  flex: 0 0 420px;
  position: relative;
  height: 420px;
}

/* Tech card (floating UI element) */
.tech-card {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.hero-photo-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 270px;
  height: 270px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(124, 58, 237, 0.45);
  box-shadow:
    0 0 0 6px rgba(124, 58, 237, 0.08),
    0 0 40px rgba(124, 58, 237, 0.20);
  z-index: 2;
}

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

.tech-card-float {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(124, 58, 237, 0.15);
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.12);
  padding: 0.8rem 1rem;
  border-radius: 10px;
}

.float-card-1 {
  top: 10%;
  left: -10%;
  animation: floatCard 6s ease-in-out infinite alternate;
}

.float-card-2 {
  bottom: 12%;
  right: -8%;
  animation: floatCard 7s ease-in-out infinite alternate-reverse;
}

.float-card-3 {
  top: 55%;
  left: -15%;
  animation: floatCard 8s ease-in-out infinite alternate;
  animation-delay: -3s;
}

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

.float-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.float-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.float-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
}

.dot-green  { background: #22c55e; }
.dot-purple { background: var(--accent-purple); }
.dot-cyan   { background: var(--accent-cyan); }

/* Central glow ring */
.glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.25);
  box-shadow:
    0 0 40px rgba(124, 58, 237, 0.15),
    inset 0 0 40px rgba(124, 58, 237, 0.05);
  animation: ringPulse 4s ease-in-out infinite;
}

.glow-ring-outer {
  width: 380px;
  height: 380px;
  border-color: rgba(124, 58, 237, 0.12);
  animation-duration: 6s;
  animation-delay: -2s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

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

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  padding: 4rem 5% 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* Footer brand */
.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.social-link:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.10);
}

/* Footer columns */
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
}

/* Footer contact items */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.contact-item .c-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--accent-cyan);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 0;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

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

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

/* =============================================
   SERVICES SECTION
   ============================================= */
.services {
  position: relative;
}

/* Mobile-first: 1-col → 2-col → 3-col */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 3rem;
}

/* Service Card */
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: rgba(124, 58, 237, 0.30);
  transform: translateY(-3px);
}

/* Featured card variant */
.service-card--featured {
  border-color: rgba(124, 58, 237, 0.25);
  background: var(--bg-secondary);
}

.service-card--featured:hover {

  border-color: var(--accent-purple);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.18);
}

/* Glow layer — disabled */
.service-card-glow {
  display: none;
}

/* Card inner padding */
.service-card-inner {
  position: relative;
  z-index: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Icon row */
.service-icon-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  background: rgba(124, 58, 237, 0.18);
  border-color: var(--accent-purple);
  color: var(--accent-cyan);
}

.service-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  line-height: 1;
  padding-top: 4px;
}

/* Featured badge */
.service-featured-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.12), rgba(124, 58, 237, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.30);
  color: var(--accent-cyan);
  margin-bottom: 0.85rem;
  width: fit-content;
}

/* Title & desc */
.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Feature list */
.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.service-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  transition: color var(--transition);
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-purple);
  opacity: 0.7;
}

.service-card:hover .service-features li {
  color: var(--text-secondary);
}

/* CTA link */
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-purple);
  transition: gap var(--transition), color var(--transition);
  margin-top: auto;
}

.service-cta svg {
  transition: transform var(--transition);
}

.service-card:hover .service-cta {
  color: var(--accent-cyan);
  gap: 0.65rem;
}

.service-card:hover .service-cta svg {
  transform: translateX(4px);
}

/* Bottom CTA row */
.services-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}

.services-cta-row p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =============================================
   PORTFOLIO / PROJECTS SECTION
   ============================================= */
.portfolio {
  position: relative;
}

/* ── Filter Tabs ─────────────────────────────── */
.portfolio-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.filter-btn {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: rgba(124, 58, 237, 0.40);
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.08);
}

.filter-btn.active {
  background: var(--accent-purple);
  border-color: transparent;
  color: #fff;
}

/* ── Projects Grid ───────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 3rem;
}

/* ── Project Card ────────────────────────────── */
.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: rgba(124, 58, 237, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.12);
}

/* ── Thumbnail ───────────────────────────────── */
.project-thumb {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-card--tall .project-thumb {
  min-height: 340px;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

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

/* ── Hover overlay ───────────────────────────── */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 75, 0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  background: var(--accent-purple);
  color: #fff;
  transform: translateY(8px);
  transition: transform 0.25s ease;
}

.project-card:hover .project-view-btn {
  transform: translateY(0);
}

/* ── Project Info ────────────────────────────── */
.project-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

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

.project-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  background: rgba(124, 58, 237, 0.10);
  color: var(--accent-purple);
  border: 1px solid rgba(124, 58, 237, 0.20);
}

.project-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.2px;
}

.project-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CSS Art ─────────────────────────────────── */
.art-browser {
  background: rgba(30, 27, 75, 0.04);
  border: 1px solid rgba(30, 27, 75, 0.10);
  border-radius: 8px;
  overflow: hidden;
}

.art-browser-bar {
  background: rgba(30, 27, 75, 0.06);
  padding: 6px 10px;
  display: flex;
  gap: 5px;
}

.art-browser-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(30, 27, 75, 0.20);
}

.art-browser-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.art-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(30, 27, 75, 0.12);
}
.art-line--wide   { width: 80%; }
.art-line--medium { width: 55%; }
.art-line--short  { width: 35%; }
.art-line--xshort { width: 20%; }

.art-grid {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.art-block {
  flex: 1;
  height: 40px;
  border-radius: 5px;
  background: rgba(30, 27, 75, 0.07);
}

.art-cta-bar {
  height: 22px;
  width: 40%;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(30,27,75,0.5), rgba(124,58,237,0.40));
  margin-top: 4px;
}

.art-portfolio {
  text-align: center;
  padding: 1rem;
}

.art-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30,27,75,0.5), rgba(124,58,237,0.40));
  margin: 0 auto 0.75rem;
}

.art-chips {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 0.75rem;
}

.art-chip {
  height: 20px;
  width: 48px;
  border-radius: 10px;
  background: rgba(30, 27, 75, 0.10);
}

.art-store { padding: 0.5rem; }

.art-store-header { margin-bottom: 0.75rem; }

.art-store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.art-product {
  height: 50px;
  border-radius: 6px;
  background: rgba(30, 27, 75, 0.08);
  border: 1px solid rgba(30, 27, 75, 0.08);
}

.art-logo-showcase {
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.art-logo-mark {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(30, 27, 75, 0.07);
  border: 1px solid rgba(30, 27, 75, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-poster {
  padding: 1.25rem;
  text-align: center;
}

.art-poster-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(30, 27, 75, 0.12);
  color: rgba(30, 27, 75, 0.80);
  margin-bottom: 1rem;
}

/* ── CTA row ─────────────────────────────────── */
.portfolio-cta-row {
  display: flex;
  justify-content: center;
}

.portfolio-cta-row .btn-outline {
  gap: 0.5rem;
}

.portfolio-cta-row .btn-outline svg {
  transition: transform var(--transition);
}

.portfolio-cta-row .btn-outline:hover svg {
  transform: translateX(4px);
}

/* Filter hidden state */
.project-card.hidden {
  display: none;
}

/* =============================================
   SKILLS / TECHNOLOGY SECTION
   ============================================= */
.skills {
  position: relative;
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

.skills-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Skill Bars ──────────────────────────────── */
.skill-bar-item {
  margin-bottom: 1.6rem;
}

.skill-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-bar-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-bar-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--accent-purple);
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-bar-fill.animate {
  width: var(--target-width);
}

/* ── Tech Pills ──────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.tech-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-align: center;
  cursor: default;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.tech-pill:hover {
  border-color: rgba(124, 58, 237, 0.30);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(30, 27, 75, 0.10);
}

.tech-pill span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.tech-pill-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon--html  { background: rgba(228, 77, 38, 0.15);   color: #e44d26; }
.tech-icon--css   { background: rgba(38, 77, 228, 0.15);   color: #264de4; }
.tech-icon--js    { background: rgba(247, 223, 30, 0.15);  color: #f7df1e; }
.tech-icon--wp    { background: rgba(33, 117, 155, 0.15);  color: #21759b; }
.tech-icon--figma { background: rgba(162, 89, 255, 0.15);  color: #a259ff; }
.tech-icon--canva { background: rgba(0, 200, 225, 0.15);   color: #00c8e1; }
.tech-icon--git   { background: rgba(240, 80, 50, 0.15);   color: #f05032; }
.tech-icon--vscode{ background: rgba(0, 122, 204, 0.15);   color: #007acc; }

.tech-pill--gradient .tech-pill-icon {
  background: linear-gradient(135deg, rgba(30,27,75,0.12), rgba(124,58,237,0.12));
  color: var(--accent-cyan);
}

/* ── Counters row ────────────────────────────── */
.skills-counters {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  flex-wrap: wrap;
}

.counter-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2.5rem;
  flex: 1;
  min-width: 160px;
}

.counter-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  flex-shrink: 0;
}

.counter-content {
  display: flex;
  flex-direction: column;
}

.counter-number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-purple);
  font-variant-numeric: tabular-nums;
}

.counter-number::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-purple);
}

.counter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.counter-divider {
  width: 1px;
  height: 60px;
  background: var(--border-color);
  flex-shrink: 0;
}

/* =============================================
   WORKFLOW SECTION
   ============================================= */
.workflow {
  position: relative;
}

/* ── Steps layout ────────────────────────────── */
.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4rem;
  position: relative;
}

/* Vertical spine line */
.workflow-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: 56px;
  width: 2px;
  background: var(--border-color);
  opacity: 1;
  z-index: 0;
}

/* ── Single step ─────────────────────────────── */
.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 2rem 2rem 0;
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
}

.workflow-step:hover {
  transform: translateX(6px);
}

/* The horizontal connector dot-line between icon and content */
.step-connector {
  position: absolute;
  left: 57px;
  top: calc(2rem + 28px);   /* vertically centred on the icon */
  width: calc(2rem - 8px);
  height: 2px;
  background: var(--border-color);
}

/* ── Step icon area ──────────────────────────── */
.step-icon-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
}

.workflow-step:hover .step-icon {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.40);
  color: var(--accent-purple);
}

/* Launch step icon */
.step-icon--launch {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.25);
  color: var(--accent-purple);
}

.workflow-step:hover .step-icon--launch {
  border-color: rgba(124, 58, 237, 0.40);
}

/* Step number badge */
.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
}

/* ── Step content ────────────────────────────── */
.step-content {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.workflow-step:hover .step-content {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 4px 16px rgba(30, 27, 75, 0.10);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.step-list li {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.step-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
}

.workflow-step:hover .step-list li {
  color: var(--text-secondary);
}

/* ── CTA Banner ──────────────────────────────── */
.workflow-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(30,27,75,0.05) 100%);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}

/* Subtle glow orb in banner */
.workflow-cta-banner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--accent-purple);
  border-radius: 50%;
  opacity: 0.07;
  right: -60px;
  top: -80px;
  pointer-events: none;
}

/* Remove blur from all decorative orb elements in hero sections */
.orb {
  filter: none !important;
}

/* Article hero title — explicit navy blue across all blog pages */
.article-hero-title {
  color: var(--text-primary);
}

.workflow-cta-text h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.3px;
}

.workflow-cta-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.workflow-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* =============================================
   RESPONSIVE — MOBILE-FIRST
   Default = phone. Expand upward.
   ============================================= */

/* =============================================
   SIDEBAR — overlay panel (all screen sizes)
   ============================================= */

/* Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 35, 0.60);
  z-index: 2998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

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

/* Sidebar shell */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  max-width: 88vw;
  height: 100vh;
  z-index: 2999;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar.open {
  transform: translateX(0);
}

/* Inner panel — glass effect */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: 6px 0 40px rgba(10, 6, 40, 0.55),
              inset -1px 0 0 var(--sidebar-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Header — logo + close button */
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 68px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--sidebar-text);
  text-decoration: none;
  user-select: none;
}

.sidebar-logo .logo-accent {
  color: var(--accent-cyan);
  text-shadow: 0 0 16px rgba(124, 58, 237, 0.55);
}

.sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.sidebar-close:hover {
  background: rgba(124, 58, 237, 0.28);
  color: #ffffff;
}

/* Nav links */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex: 1;
}

.sidebar-nav a {
  display: block;
  padding: 13px 20px;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--sidebar-text);
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  margin-right: 12px;
  opacity: 0;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease,
              border-color 0.2s ease, padding-left 0.2s ease,
              box-shadow 0.2s ease;
}

.sidebar-nav a:hover {
  color: #ffffff;
  background: var(--sidebar-hover);
  border-left-color: var(--accent-cyan);
  padding-left: 28px;
  box-shadow: var(--sidebar-glow);
}

.sidebar-nav a.active {
  color: #ffffff;
  background: var(--sidebar-active);
  border-left-color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: var(--sidebar-glow);
}

/* Staggered slide-in animation */
@keyframes sidebarLinkIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.sidebar.open .sidebar-nav a:nth-child(1) { animation: sidebarLinkIn 0.30s ease 0.04s forwards; }
.sidebar.open .sidebar-nav a:nth-child(2) { animation: sidebarLinkIn 0.30s ease 0.09s forwards; }
.sidebar.open .sidebar-nav a:nth-child(3) { animation: sidebarLinkIn 0.30s ease 0.14s forwards; }
.sidebar.open .sidebar-nav a:nth-child(4) { animation: sidebarLinkIn 0.30s ease 0.19s forwards; }
.sidebar.open .sidebar-nav a:nth-child(5) { animation: sidebarLinkIn 0.30s ease 0.24s forwards; }
.sidebar.open .sidebar-nav a:nth-child(6) { animation: sidebarLinkIn 0.30s ease 0.29s forwards; }
.sidebar.open .sidebar-nav a:nth-child(7) { animation: sidebarLinkIn 0.30s ease 0.34s forwards; }
.sidebar.open .sidebar-nav a:nth-child(8) { animation: sidebarLinkIn 0.30s ease 0.39s forwards; }

/* CTA button at bottom */
.sidebar-cta-wrap {
  padding: 20px 16px 28px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-cta-btn {
  display: block;
  text-align: center;
  width: 100%;
  border-radius: 10px;
  opacity: 0;
}

.sidebar.open .sidebar-cta-btn {
  animation: sidebarLinkIn 0.30s ease 0.44s forwards;
}

/* Hero — mobile defaults */
.hero {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  min-height: auto;
}

.hero-inner {
  gap: 2rem;
}

.hero-cta {
  justify-content: center;
}

.hero-stats {
  justify-content: center;
}

.hero-visual {
  flex: 0 0 280px;
  height: 280px;
  width: 280px;
}

.float-card-1 { left: -5%; }
.float-card-2 { right: -5%; }
.float-card-3 { left: -5%; }

/* Skills counters — stacked on mobile */
.skills-counters {
  flex-direction: column;
  align-items: stretch;
  padding: 1.5rem;
}

.counter-item {
  padding: 1rem 0.5rem;
  flex: unset;
}

.counter-divider {
  width: 100%;
  height: 1px;
}

/* Workflow */
.workflow-cta-banner {
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
}

.workflow-cta-actions {
  width: 100%;
}

.workflow-cta-actions .btn {
  flex: 1;
  justify-content: center;
}

/* Footer */
.footer-bottom {
  flex-direction: column;
  text-align: center;
  gap: 0.75rem;
}

.services-cta-row {
  flex-direction: column;
  text-align: center;
  gap: 1rem;
}

/* ── Tablet: 640px+ ── */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Desktop: 900px+ ── */
@media (min-width: 900px) {
  /* Hero — side-by-side */
  .hero {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 2rem) 5% 4rem;
  }

  .hero-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
  }

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

  .hero-title {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    letter-spacing: -1.5px;
  }

  .hero-sub {
    max-width: 480px;
  }

  .hero-cta,
  .hero-stats {
    justify-content: flex-start;
  }

  .hero-visual {
    flex: 0 0 400px;
    height: 400px;
    width: 400px;
  }

  /* Grids expand */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .skills-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr;
    gap: 3rem;
  }

  .section-pad {
    padding: 100px 0;
  }

  .skills-counters {
    flex-direction: row;
    align-items: stretch;
    padding: 2.5rem;
  }

  .counter-item {
    padding: 0 2rem;
    flex: 1;
  }

  .counter-divider {
    width: 1px;
    height: 60px;
  }

  .workflow-cta-banner {
    flex-direction: row;
    align-items: center;
    padding: 2.5rem 3rem;
  }

  .workflow-cta-actions {
    width: auto;
  }

  .workflow-cta-actions .btn {
    flex: unset;
  }

  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }

  .services-cta-row {
    flex-direction: row;
    text-align: left;
  }
}

/* =============================================
   BACK-TO-TOP BUTTON
   ============================================= */
.btt-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-purple);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.btt-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* =============================================
   HERO TITLE COLORS — all pages
   ============================================= */
.article-hero-title,
.port-hero-title {
  color: #faf8f5;
}

/* =============================================
   SMOOTH SCROLL POLISH — selection color
   ============================================= */
::selection {
  background: rgba(124, 58, 237, 0.30);
  color: #1e1b4b;
}

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar styling (webkit) */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

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

/* =============================================
   FOOTER — text overrides for dark navy background
   ============================================= */
.footer { color: #c4b4e8; }
.footer-col h4 { color: #ede9f8; }
.footer-col ul li a,
.footer-bottom p,
.footer-bottom-links a,
.footer-tagline { color: #a899cc; }
.footer-col ul li a:hover,
.footer-bottom-links a:hover { color: #ffffff; }
.social-link { color: #a899cc; border-color: rgba(255,255,255,0.15); }
.social-link:hover {
  color: #ffffff;
  border-color: var(--accent-cyan);
  background: rgba(124, 58, 237, 0.15);
}
.contact-item p,
.contact-item a { color: #a899cc; }
.contact-item a:hover { color: #ffffff; }
