/*
  main.css - Unified design system for OmniEdit X Studio UI
  -------------------------------------------------------
  This stylesheet consolidates and enhances the visual aesthetic across all pages.
  It uses a dark theme with vibrant accent colors, glassmorphism cards, smooth
  micro‑animations, and the Inter font from Google Fonts.
*/

/* Import moved to HTML head for optimized parallel loading with preconnect */

/* Root variables – unified HSL palette for consistent theming */
:root {
  --bg: #0a0a0f;                     /* dark background */
  --text: #ffffff;                  /* primary text */
  --accent: #00d4ff;                /* electric cyan */
  --accent2: #7b61ff;               /* soft violet */
  --secondary: #b0b0b0;             /* muted gray */
  --card: rgba(20, 20, 30, 0.62);   /* unified card token (used by inline page styles) */
  --card-bg: rgba(20, 20, 30, 0.75);/* glass card background */
  --card-blur: blur(14px);           /* consistent backdrop blur */
  --accent-hover: #00b8e8;          /* accent hover shade */
  --accent2-hover: #6a52e7;         /* accent2 hover shade */
  --error: #ff4757;                 /* error red */
  --success: #2ed573;               /* success green */
  --shadow: rgba(0, 212, 255, 0.25);/* consistent shadow */
  --shadow-soft: rgba(0, 0, 0, 0.3);
  --border-radius-base: 20px;       /* standardized border radius */
  --border-radius-sm: 12px;         /* small elements */
  --border-radius-lg: 24px;         /* large containers */
}

/* Reset & global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Sticky-footer flex column — required by .auth-container/.gallery-section/.loading-screen
   (flex: 1) and footer (margin-top: auto) rules below */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Keyboard focus visibility (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Utility classes */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Glassmorphism card */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);

  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: var(--border-radius-base);
  padding: 24px;
  transition: all 0.4s ease;
}
.glass-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 8px 30px var(--shadow);
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.logo-img {
  height: 50px;
  transition: transform 0.4s ease;
}
.logo-img:hover {
  transform: scale(1.1) rotate(5deg);
}
.nav-links-wrapper a {
  color: var(--text);
  text-decoration: none;
  margin-left: 40px;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  transition: color 0.4s ease;
  letter-spacing: .5px;
}
.nav-links-wrapper a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.4s ease;
}
.nav-links-wrapper a:hover {
  color: var(--accent);
}
.nav-links-wrapper a:hover::after {
  width: 100%;
}

/* Buttons */
.btn-primary, .action-btn, .btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary, .action-btn {
  background: var(--card-bg);
  border: 1px solid rgba(0,212,255,0.12);
  color: var(--accent);
}
.btn-primary:hover, .action-btn:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}
.btn-logout {
  background: transparent;
  color: var(--error);
  border: 2px solid var(--error);
  font-size: 14px;
  font-weight: 700;
}
.btn-logout:hover {
  background: var(--error);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255,71,87,0.3);
  transform: translateY(-2px);
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
  display: none;
}
.alert.success {
  background: rgba(46,213,115,0.15);
  border: 1px solid rgba(46,213,115,0.3);
  color: var(--success);
  display: block;
}
.alert.error {
  background: rgba(255,71,87,0.15);
  border: 1px solid rgba(255,71,87,0.3);
  color: var(--error);
  display: block;
}

/* Profile banner – glass effect */
.profile-banner {
  background: var(--card-bg);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);

  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}
.profile-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.avatar-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 3px;
  box-shadow: 0 0 30px rgba(0,212,255,0.3);
  position: relative;
  cursor: pointer;
  transition: all 0.4s ease;
}
.avatar-wrapper:hover {
  box-shadow: 0 0 50px rgba(0,212,255,0.5);
  transform: scale(1.05);
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.avatar-inner .initial {
  font-size: 44px;
  font-weight: 900;
  color: var(--accent);
}
.avatar-edit {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--bg);
  border: 2px solid var(--bg);
}

/* Headings */
.profile-banner h1 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 4px;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.profile-banner .biz-name {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}
.profile-banner .pid {
  font-size: 11px;
  color: #555;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.profile-banner .profile-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 24px;
  background: transparent;
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .4s ease;
}
.profile-banner .profile-link:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--accent);
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.info-card {
  background: var(--card-bg);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);

  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: var(--border-radius-base);
  padding: 24px;
  transition: all 0.4s ease;
}
.info-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 8px 30px var(--shadow);
}
.info-card h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 700;
}
.info-card p {
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge.verified { background: rgba(46,213,115,0.15); color: var(--success); border: 1px solid rgba(46,213,115,0.3); }
.badge.unverified { background: rgba(255,71,87,0.15); color: var(--error); border: 1px solid rgba(255,71,87,0.3); }
.badge.role { background: rgba(0,212,255,0.15); color: var(--accent); border: 1px solid rgba(0,212,255,0.3); }

/* Loading screen */
.loading-screen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 20px;
}
.loading-screen p {
  color: var(--secondary);
  font-size: 18px;
}

/* Dashboard page */
.dashboard-container {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 130px 24px 60px;
}
.actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}

/* Footer */
footer {
  padding: 30px;
  text-align: center;
  color: #7a7a8a; /* lifted from #444 for readability on dark bg */
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.03);
  margin-top: auto;
}

/* Reveal animation for dynamic elements */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Auth pages (forgot password, login, etc.) */
.auth-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 60px;
}
.auth-card {
  background: var(--card-bg);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);

  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: var(--border-radius-lg);
  transition: all 0.4s ease;
  width: 100%;
  max-width: 480px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.auth-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 8px 30px var(--shadow);
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}
.auth-card h1 {
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-card .subtitle {
  text-align: center;
  color: var(--secondary);
  font-size: 14px;
  margin-bottom: 36px;
}
.form-group {
  margin-bottom: 22px;
  position: relative;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.form-group input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: rgba(10,10,15,0.8);
  border: 2px solid rgba(0,212,255,0.12);
  border-radius: var(--border-radius-sm);
  color: #fff;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all .3s ease;
  outline: none;
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,212,255,0.25);
}
.form-group .input-icon {
  position: absolute;
  left: 14px;
  bottom: 15px;
  color: var(--secondary);
  font-size: 16px;
  pointer-events: none;
}
.password-toggle {
  position: absolute;
  right: 14px;
  bottom: 15px;
  color: var(--secondary);
  cursor: pointer;
  font-size: 16px;
}
.password-toggle:hover { color: var(--accent); }
.btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all .4s ease;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 40px var(--shadow); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-submit .spinner { display: none; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top: 3px solid #fff; border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
.btn-submit.loading span { display: none; }
.btn-submit.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Gallery page specific */
.gallery-section { flex: 1; padding: 140px 20px 80px; text-align: center; }
.gallery-title { font-size: clamp(48px, 7vw, 82px); font-weight: 900; letter-spacing: 3px; margin-bottom: 60px; opacity: 0; transform: translateY(50px); animation: fadeInUp 1.2s ease forwards 0.5s; }
.gallery-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 50px; }
.gallery-item { background: var(--card-bg); backdrop-filter: var(--card-blur); -webkit-backdrop-filter: var(--card-blur); border-radius: var(--border-radius-base); padding: 24px; overflow: hidden; border: 1px solid rgba(0,212,255,0.1); transition: all 0.6s cubic-bezier(0.16,1,0.3,1); box-shadow: 0 10px 30px var(--shadow-soft); }
.gallery-item:hover { transform: translateY(-12px); border-color: rgba(0,212,255,0.3); box-shadow: 0 30px 60px var(--shadow); }
.gallery-media-wrapper { border-radius: var(--border-radius-sm); overflow: hidden; margin-bottom: 16px; }
.gallery-item img, .gallery-item video { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform 0.8s ease; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.05); }
.gallery-item h3 { font-size: 20px; color: var(--accent); margin-bottom: 8px; font-weight: 700; }
.gallery-item p { color: var(--secondary); font-size: 14px; line-height: 1.6; }
.no-items { color: var(--secondary); font-size: 22px; margin-top: 80px; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Responsive tweaks */
@media (max-width: 768px) {
  .nav-links-wrapper a { margin-left: 20px; font-size: 14px; }
  .info-grid { grid-template-columns: 1fr; }
  .profile-banner { padding: 28px 20px; }
  .gallery-title { font-size: 36px; }
  .gallery-item { padding: 16px; }
  .auth-card { padding: 36px 24px; }
  .auth-container { padding: 100px 16px 40px; }
  .dashboard-container { padding: 110px 16px 40px; }
}

/* ── Disable ALL Animations on Mobile for Performance ── */
@media (max-width: 768px) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    /* Force reveal elements to be fully visible immediately */
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-rotate,
    .reveal-blur,
    .stagger-children > *,
    .welcome-intro,
    .hero-title,
    .hero-sub,
    .hero-desc,
    .cta-group,
    .scroll-indicator,
    .gallery-title,
    .animated-gradient-text,
    .fadeUp,
    .reveal-fade {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        visibility: visible !important;
    }

    /* Hide heavy background effects completely on mobile */
    .live-bg, .particles-container {
        display: none !important;
    }
}


/* Explicit content stratification to force dynamic backdrops behind text layers */
nav, footer, section, main, .auth-container, .dashboard-container { position: relative; z-index: 1; }

/* Shared auth-page helpers (login / register / verify / forgot-password) */
.auth-links { text-align: center; margin-top: 24px; font-size: 14px; color: var(--secondary); }
.auth-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-links a:hover { color: #fff; }
.code-inputs { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.code-inputs input {
  width: 50px; height: 60px; text-align: center; font-size: 26px; font-weight: 900;
  background: rgba(10,10,15,0.8); border: 2px solid rgba(0,212,255,0.15);
  border-radius: 14px; color: var(--accent); font-family: 'Inter', sans-serif;
  outline: none; transition: all .3s ease;
}
.code-inputs input:focus { border-color: var(--accent); box-shadow: 0 0 20px rgba(0,212,255,0.3); transform: scale(1.05); }
.step { display: none; }
.step.active { display: block; }
@media (max-width: 768px) {
  .code-inputs input { width: 42px; height: 52px; font-size: 22px; }
}


/* ══════════════════════════════════════════════════════════════════
   MOBILE HERO & DUAL-INTERFACE ENGINE
   Matches Sajeeb Sarker's personal site on mobile <= 768px
   ══════════════════════════════════════════════════════════════════ */
.mobile-hero {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100svh;
  padding: 100px 1.25rem 3rem;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  overflow: hidden;
  text-align: center;
  gap: 0;
}

/* Ambient glow behind avatar */
.mobile-hero::after {
  content: '';
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.18) 0%, rgba(123, 97, 255, 0.12) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.mobile-hero__avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 1.4rem;
  flex-shrink: 0;
  z-index: 1;
}

.mobile-hero__avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.12),
              0 0 30px rgba(0, 212, 255, 0.35),
              0 8px 32px rgba(0, 0, 0, 0.6);
  display: block;
}

.mobile-hero__avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 212, 255, 0.3);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

.mobile-hero__status {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid #08080e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.mobile-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 0.9rem;
  z-index: 1;
}

.mobile-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 8px #00d4ff;
}

.mobile-hero__name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.1rem, 8vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 0.65rem;
  z-index: 1;
}

.mobile-hero__name span {
  background: linear-gradient(135deg, #00d4ff, #7b61ff, #f89b5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-hero__tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--secondary, #8892a4);
  max-width: 340px;
  margin: 0 auto 1.5rem;
  z-index: 1;
}

/* 3-metric stats counter */
.mobile-hero__stats {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  margin-bottom: 1.6rem;
  z-index: 1;
}

.mobile-hero__stat {
  flex: 1;
  padding: 0.85rem 0.5rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-hero__stat:last-child { border-right: none; }

.mobile-hero__stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, #00d4ff, #7b61ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-hero__stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary, #8892a4);
}

/* Action CTAs */
.mobile-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
  margin-bottom: 1.6rem;
  z-index: 1;
}

.mobile-hero__btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00d4ff, #7b61ff);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-hero__btn-primary:active { transform: scale(0.97); }

.mobile-hero__btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-hero__btn-secondary:active { background: rgba(255, 255, 255, 0.08); }

/* Skill / Service Chips */
.mobile-hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 340px;
  margin-bottom: 2rem;
  z-index: 1;
}

.mobile-hero__chip {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary, #8892a4);
  letter-spacing: 0.02em;
}

/* Scroll indicator */
.mobile-hero__scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 1;
  opacity: 0.6;
  animation: mobileCueBounce 2s ease-in-out infinite;
}

.mobile-hero__scroll-cue i { font-size: 16px; color: #00d4ff; }
.mobile-hero__scroll-cue span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary, #8892a4);
}

@keyframes mobileCueBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ══════════════════════════════════════════════════════════════════
   FEATURED POSTS & ARTICLE RECOMMENDATIONS
   ══════════════════════════════════════════════════════════════════ */
.featured-posts-section {
  position: relative;
  z-index: 10;
  padding: clamp(4rem, 7vw, 6rem) 20px;
  background: linear-gradient(180deg, rgba(8, 8, 14, 0.6) 0%, rgba(10, 10, 20, 0.95) 30%, #050508 100%);
}

.featured-posts-container {
  max-width: 1200px;
  margin: 0 auto;
}

.featured-posts-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

.featured-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 9999px;
  padding: 6px 16px;
  margin-bottom: 14px;
}

.featured-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00d4ff;
}

.featured-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
}

.featured-section-desc {
  color: var(--secondary, #8892a4);
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0;
}

.featured-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.featured-view-all-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
  transform: translateX(3px);
}

.home-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.post-preview-card {
  background: rgba(14, 16, 28, 0.7);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.post-preview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.2);
}

.post-card-thumb-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #050508;
}

.post-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-preview-card:hover .post-card-thumb {
  transform: scale(1.05);
}

.post-thumb-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(8, 8, 14, 0.85);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #00d4ff;
  backdrop-filter: blur(8px);
}

.post-thumb-reading {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.post-card-body {
  padding: 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--secondary, #8892a4);
  margin-bottom: 10px;
}

.post-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.post-card-title:hover {
  color: #00d4ff;
}

.post-card-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: var(--secondary, #8892a4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.post-card-actions {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-read-post {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00d4ff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-read-post:hover {
  color: #fff;
  transform: translateX(3px);
}

/* ── Post Action Buttons & Floating Share Popover ── */
.post-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--secondary, #8892a4);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 34px;
}

.post-action-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #fff;
  border-color: rgba(0, 212, 255, 0.3);
}

.post-action-btn svg {
  width: 15px !important;
  height: 15px !important;
  display: inline-block;
  vertical-align: middle;
}

.post-action-btn.is-liked {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}

.post-action-btn.is-liked svg {
  fill: #ef4444;
}

/* Floating Share Popover */
.share-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 50;
  background: #14172b;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  display: none !important;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 170px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: popoverFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-popover.open,
.share-popover.is-open {
  display: flex !important;
}

@keyframes popoverFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.share-option-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e2e8f0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.share-option-btn:hover {
  background: rgba(0, 212, 255, 0.12);
  color: #00d4ff;
}

.share-option-btn svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
  display: inline-block;
}

/* Nav CTA button */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 6px 16px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 97, 255, 0.2));
  border: 1px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-cta-btn:hover {
  background: linear-gradient(135deg, #00d4ff, #7b61ff);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
  transform: scale(1.03);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE DUAL UI ENGINE (Desktop >768px vs Mobile <=768px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hide Desktop Hero on Mobile */
  .hero {
    display: none !important;
  }

  /* Show Mobile Hero on Mobile */
  .mobile-hero {
    display: flex !important;
  }

  /* Unpin Scrollytelling on Mobile for fast zero-lag native scroll */
  #journey-section {
    height: auto !important;
    padding: 60px 16px 40px !important;
  }

  #journey-sticky {
    position: relative !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    background: transparent !important;
    overflow: visible !important;
  }

  #journey-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin-bottom: 24px !important;
  }

  #journey-rail, #journey-ghost {
    display: none !important;
  }

  .j-step {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    transform: none !important;
    background: rgba(14, 16, 28, 0.6) !important;
    border: 1px solid rgba(0, 212, 255, 0.12) !important;
    border-radius: 20px !important;
    padding: 30px 20px !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
  }

  .home-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   HERO SCROLLYTELLING EMBED (PC & DESKTOP MAIN CONTENT)
   ══════════════════════════════════════════════════════════════════════ */
.hero-embed {
  width: 100%;
  position: relative;
  background: var(--bg, #08080e);
  z-index: 1;
  padding-top: 74px;
  min-height: 100vh;
}

.hero-embed iframe {
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  border: none;
  display: block;
  background: #050508;
  pointer-events: none;
}

/* Watermark cover for desktop embed */
#wm-cover {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 9999;
  background: #000000;
  padding: 10px 20px 10px 16px;
  border-radius: 16px 0 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 215px;
  min-height: 44px;
  border-top: 1px solid rgba(0, 212, 255, 0.22);
  border-left: 1px solid rgba(0, 212, 255, 0.22);
  box-shadow: -4px -4px 28px rgba(0, 212, 255, 0.14), inset 0 0 20px rgba(0, 212, 255, 0.03);
  transition: opacity 0.4s ease, box-shadow 0.3s ease;
  cursor: default;
  user-select: none;
}

#wm-cover:hover {
  box-shadow: -6px -6px 36px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.06);
}

#wm-cover .wm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 8px #00d4ff;
  animation: wmPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes wmPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.65; }
}

@keyframes spinR {
  to { transform: rotate(360deg); }
}

#wm-cover .wm-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00d4ff, #7b61ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll hint indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.scroll-hint.is-hidden { opacity: 0; }

.scroll-hint__mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(0, 212, 255, 0.55);
  border-radius: 12px;
  position: relative;
}

.scroll-hint__wheel {
  display: block;
  width: 4px;
  height: 8px;
  background: #00d4ff;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  animation: hint-wheel 1.6s ease-in-out infinite;
}

@keyframes hint-wheel {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  60%  { opacity: 0; transform: translateX(-50%) translateY(10px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(0); }
}

.scroll-hint__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-embed { display: none !important; }
  #wm-cover { display: none !important; }
  .scroll-hint { display: none !important; }
  .mobile-hero { display: flex !important; }
  .hero { display: none !important; }
}

@media (min-width: 769px) {
  .mobile-hero { display: none !important; }
  .hero-embed { display: block !important; }
  .hero { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   UNIVERSAL PRELOADER FIX (Ring in front, zero square corner glitch)
   ══════════════════════════════════════════════════════════════════════ */
.preloader {
  z-index: 99999 !important;
}

.loader-ring,
.simple-loader,
.loader-ring-s {
  position: absolute !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

.preloader-logo {
  border-radius: 50% !important;
  overflow: hidden !important;
  object-fit: cover !important;
  clip-path: circle(50% at 50% 50%) !important;
  -webkit-clip-path: circle(50% at 50% 50%) !important;
  z-index: 2 !important;
  display: block !important;
}

.loader-container {
  position: relative !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}
