/* ==========================================================================
   SECTIONS UNIFIED — Comprehensive Cyber Design System for Viir Phuria
   Unified styling for Dark & Light themes across all 9 canonical sections.
   ========================================================================== */

/* ─── 0. Universal Base & Theme Tokens ─── */
html {
  scroll-behavior: smooth;
  background-color: #0b0f19;
}

html.light {
  background-color: #f8fafc;
}

body {
  font-family: var(--font-sans, 'Manrope', sans-serif);
  background-color: transparent !important;
  color: #94a3b8;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  transition: color 0.3s ease;
}

body.dark {
  color: #94a3b8 !important;
}

body.light {
  color: #475569 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light h1,
body.light h2,
body.light h3,
body.light h4,
body.light h5,
body.light h6 {
  color: #0f172a !important;
}

section[id] {
  scroll-margin-top: 74px;
}

/* ─── Background Canvas ─── */
#gridCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ─── Typography & Shared Cyber Tokens ─── */
.cyber-subheading {
  display: inline-block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #8b5cf6;
  margin-bottom: 0.6rem;
}

body.light .cyber-subheading {
  color: #7c5bff;
}

.cyber-section-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

body.light .cyber-section-title {
  color: #0f172a !important;
}

.cyber-badge,
.video-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(139, 92, 246, 0.18);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

body.light .cyber-badge,
body.light .video-badge {
  background: rgba(124, 91, 255, 0.12);
  color: #6d28d9;
  border-color: rgba(124, 91, 255, 0.3);
}

.glass-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

body.light .glass-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.15);
  box-shadow: 0 10px 30px rgba(124, 91, 255, 0.06);
}

.glass-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
}

.capsule-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none !important;
  border: 1px solid transparent;
}

.capsule-btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35) !important;
  border-color: transparent !important;
}

.capsule-btn-primary:hover {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5) !important;
}

.capsule-btn-ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
}

body.light .capsule-btn-ghost {
  background: rgba(124, 91, 255, 0.08) !important;
  border-color: rgba(124, 91, 255, 0.25) !important;
  color: #1e293b !important;
}

.capsule-btn-ghost:hover {
  background: rgba(139, 92, 246, 0.15) !important;
  border-color: #8b5cf6 !important;
  color: #8b5cf6 !important;
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════
   NAVBAR (Flexbox layout, no overlapping)
   ═════════════════════════════════════════════════════ */
.navbar-fixed {
  z-index: 20000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(11, 19, 43, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light .navbar-fixed {
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.navbar-inner-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand-link {
  text-decoration: none !important;
  display: flex;
  align-items: center;
}

#headish,
.navbar-brand-link .navbar-title {
  position: static !important;
  transform: none !important;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em;
  margin: 0;
  display: inline-block;
  pointer-events: auto !important;
}

body.light #headish,
body.light .navbar-brand-link .navbar-title {
  color: #0f172a !important;
}

.cert-page-subtitle {
  font-size: 0.85rem;
  color: #8b5cf6;
  font-weight: 600;
}

body.light .cert-page-subtitle {
  color: #7c5bff;
}

.navbar-desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link-item {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  padding: 6px 12px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

body.light .nav-link-item {
  color: #475569;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: #8b5cf6 !important;
  background: rgba(139, 92, 246, 0.12);
}

body.light .nav-link-item:hover,
body.light .nav-link-item.active {
  color: #7c5bff !important;
  background: rgba(124, 91, 255, 0.08);
}

.navbar-right-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-toggle-wrap,
#mytoggle {
  display: none !important;
}

.sidebar-toggle-btn {
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  right: auto !important;
  top: auto !important;
}

@media (min-width: 992px) {
  .sidebar-toggle-btn {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-desktop-nav {
    display: none !important;
  }
  .sidebar-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* ════════════════════════════════════════════════════
   1. HERO SECTION
   ═════════════════════════════════════════════════════ */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 20px 60px;
  overflow: hidden;
}

#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  gap: 40px;
}

.hero-left {
  flex: 1 1 55%;
}

.hero-right {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 20px;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-greeting {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

body.light .hero-greeting {
  color: #475569;
}

.hero-name {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 12px;
}

body.light .hero-name {
  color: #0f172a;
}

.hero-role-line {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 20px;
  color: #cbd5e1;
}

body.light .hero-role-line {
  color: #334155;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
}

.hero-tagline {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 580px;
  margin-bottom: 30px;
}

body.light .hero-tagline {
  color: #475569;
}

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

.hero-socials {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 35px;
}

.hero-social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.15rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

body.light .hero-social-link {
  background: rgba(124, 91, 255, 0.08);
  border-color: rgba(124, 91, 255, 0.18);
  color: #475569;
}

.hero-social-link:hover {
  background: #8b5cf6;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.4);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 18px 26px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  width: fit-content;
}

body.light .hero-stats {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(124, 91, 255, 0.15);
  box-shadow: 0 8px 24px rgba(124, 91, 255, 0.06);
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
}

.hero-stats .stat-n {
  font-size: 1.7rem;
  font-weight: 800;
  color: #8b5cf6;
  line-height: 1.1;
}

.hero-stats .stat-l {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  font-weight: 600;
}

body.light .hero-stats .stat-l {
  color: #475569;
}

.hero-stats .stat-div {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
}

body.light .hero-stats .stat-div {
  background: rgba(0, 0, 0, 0.1);
}

/* Orbit Visual */
.orbit-container {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(139, 92, 246, 0.35);
  animation: orbit-rotate 35s linear infinite;
}

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

.orbit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(calc(var(--idx) * 45deg)) translate(190px) rotate(calc(var(--idx) * -45deg));
  animation: orbit-counter-rotate 35s linear infinite;
}

body.light .orbit-icon {
  background: #ffffff;
  border-color: rgba(124, 91, 255, 0.3);
  box-shadow: 0 4px 14px rgba(124, 91, 255, 0.15);
}

@keyframes orbit-counter-rotate {
  from { transform: rotate(calc(var(--idx) * 45deg)) translate(190px) rotate(calc(var(--idx) * -45deg)) rotate(0deg); }
  to { transform: rotate(calc(var(--idx) * 45deg)) translate(190px) rotate(calc(var(--idx) * -45deg)) rotate(-360deg); }
}

.orbit-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.orbit-photo {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #8b5cf6, #38bdf8);
  box-shadow: 0 0 45px rgba(139, 92, 246, 0.45);
}

.orbit-photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #0b0f19;
}

.orbit-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ════════════════════════════════════════════════════
   2. ABOUT SECTION
   ═════════════════════════════════════════════════════ */
#about {
  position: relative;
  padding: 90px 0;
}

.about-card {
  padding: 40px;
}

.about-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

body.light .about-card h3 {
  color: #0f172a;
}

.about-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #94a3b8;
  margin-bottom: 20px;
}

body.light .about-card p {
  color: #475569;
}

.about-info-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.about-info-list li {
  display: flex;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.about-info-list li .info-label {
  width: 90px;
  font-weight: 700;
  color: #ffffff;
}

body.light .about-info-list li .info-label {
  color: #0f172a;
}

.about-info-list li .info-val {
  color: #94a3b8;
}

body.light .about-info-list li .info-val {
  color: #475569;
}

.about-info-list li a {
  color: #8b5cf6;
  text-decoration: none;
  transition: color 0.2s;
}

.about-info-list li a:hover {
  color: #a78bfa;
}

/* ════════════════════════════════════════════════════
   3. TIMELINE SECTION
   ═════════════════════════════════════════════════════ */
#timeline {
  position: relative;
  padding: 90px 0;
}

.timeline-column-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.light .timeline-column-title {
  color: #0f172a;
}

.timeline-cyber-track {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid rgba(139, 92, 246, 0.25);
}

body.light .timeline-cyber-track {
  border-left-color: rgba(124, 91, 255, 0.25);
}

.timeline-cyber-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-cyber-item:last-child {
  margin-bottom: 0;
}

.timeline-cyber-dot {
  position: absolute;
  top: 18px;
  left: -37px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0f172a;
  border: 3px solid #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
  z-index: 2;
}

body.light .timeline-cyber-dot {
  background: #ffffff;
  border-color: #7c5bff;
}

.timeline-cyber-content {
  padding: 22px 24px;
}

.timeline-cyber-content:hover {
  transform: translateX(4px);
  border-color: rgba(139, 92, 246, 0.4);
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

body.light .timeline-role {
  color: #0f172a;
}

.timeline-org {
  font-size: 0.95rem;
  color: #8b5cf6;
  font-weight: 600;
}

body.light .timeline-org {
  color: #7c5bff;
}

.timeline-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

body.light .timeline-desc {
  color: #475569;
}

/* ════════════════════════════════════════════════════
   4. WORK SHOWCASE SECTION (Continuous Smooth Marquee)
   ═════════════════════════════════════════════════════ */
#work {
  position: relative;
  padding: 60px 0 30px;
  overflow: hidden;
}

#work .cyber-section-title {
  margin-bottom: 1.2rem;
}

.work-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 25px;
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.work-marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: workTicker 42s linear infinite;
  will-change: transform;
}

.work-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes workTicker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 768px) {
  .work-marquee-track {
    gap: 18px;
    animation-duration: 32s;
  }
  .work-item-card {
    width: 320px !important;
    min-height: 270px !important;
    padding: 22px !important;
  }
}

.work-item-card {
  width: 380px;
  min-height: 290px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-radius: 18px;
}

.work-item-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 16px 36px rgba(139, 92, 246, 0.18);
}

.work-item-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 12px 0 6px;
}

body.light .work-item-card h3 {
  color: #0f172a;
}

.work-item-card h6 {
  font-size: 0.85rem;
  color: #8b5cf6;
  font-family: var(--font-mono, monospace);
  margin-bottom: 14px;
}

.work-item-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  flex-grow: 1;
}

body.light .work-item-card p {
  color: #475569;
}

/* ════════════════════════════════════════════════════
   5. SERVICES SECTION (3D Flipper)
   ═════════════════════════════════════════════════════ */
#services {
  position: relative;
  padding: 50px 0 70px;
}

#services-container {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

#services-container > [class*="col-"] {
  display: flex !important;
  margin-bottom: 24px;
}

.flipper {
  perspective: 1000px;
  width: 100%;
  height: 100%;
  min-height: 280px;
  margin-bottom: 0;
}

.main-box {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
}

.flipper:hover .main-box {
  transform: rotateY(180deg);
}

.box-front,
.box-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.dark .box-front {
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

body.light .box-front {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(124, 91, 255, 0.06);
  border-color: rgba(124, 91, 255, 0.15);
}

body.dark .box-back {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(15, 23, 42, 0.95));
  transform: rotateY(180deg);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
}

body.light .box-back {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  transform: rotateY(180deg);
  border-color: rgba(124, 91, 255, 0.25);
  box-shadow: 0 15px 35px rgba(124, 91, 255, 0.12);
}

.box-front .icon,
.box-back .icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #8b5cf6;
  font-size: 1.6rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.box-front h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
}

body.light .box-front h3 {
  color: #0f172a;
}

.box-back h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

body.light .box-back h3 {
  color: #0f172a;
}

.box-back p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 0;
}

body.light .box-back p {
  color: #475569;
}

/* ════════════════════════════════════════════════════
   6. SKILLS SECTION
   ═════════════════════════════════════════════════════ */
#skills {
  position: relative;
  padding: 90px 0;
}

.skill-category-card {
  padding: 26px;
  height: 100%;
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 16px 36px rgba(139, 92, 246, 0.15);
}

.skill-category-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

body.light .skill-category-card h3 {
  color: #0f172a;
}

.skill-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  transition: all 0.2s ease;
}

body.light .skill-chip {
  background: rgba(124, 91, 255, 0.08);
  border-color: rgba(124, 91, 255, 0.2);
  color: #5b21b6;
}

.skill-chip:hover {
  border-color: #8b5cf6;
  color: #ffffff !important;
  background: #8b5cf6;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════
   7. VIDEOS SECTION
   ═════════════════════════════════════════════════════ */
#videos {
  position: relative;
  padding: 90px 0;
}

#videoContainer .video-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.light #videoContainer .video-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(139, 92, 246, 0.16);
  box-shadow: 0 10px 30px rgba(124, 91, 255, 0.08);
}

#videoContainer .video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

#videoContainer .video-frame-wrap,
#videoContainer .video-frame {
  position: relative;
  width: 100%;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#videoContainer iframe.video-frame-embed,
#videoContainer iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

#videoContainer video.video-player,
#videoContainer video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

#videoContainer .video-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#videoContainer .video-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 10px 0 8px;
  color: #ffffff;
}

body.light #videoContainer .video-info h3 {
  color: #0f172a;
}

#videoContainer .video-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  flex-grow: 1;
  margin-bottom: 18px;
}

body.light #videoContainer .video-info p {
  color: #475569;
}

.share-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

body.light .share-btn {
  background: rgba(124, 91, 255, 0.08);
  border-color: rgba(124, 91, 255, 0.2);
  color: #334155;
}

.share-btn:hover {
  background: #8b5cf6;
  color: #ffffff !important;
  border-color: #8b5cf6;
  transform: translateY(-1px);
}

#videoContainer .highlight-card {
  outline: 3px solid #8b5cf6;
  outline-offset: 4px;
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.5) !important;
}

/* ════════════════════════════════════════════════════
   8. BLOG SECTION
   ═════════════════════════════════════════════════════ */
#blog {
  position: relative;
  padding: 90px 0;
}

.blog-card {
  padding: 0;
  overflow: hidden;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.18);
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

body.light .blog-card h3 {
  color: #0f172a;
}

.blog-card p {
  color: #94a3b8;
}

body.light .blog-card p {
  color: #475569;
}

.blog-card-thumb,
.block-20 {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ════════════════════════════════════════════════════
   9. CONTACT SECTION
   ═════════════════════════════════════════════════════ */
#contact {
  position: relative;
  padding: 90px 0;
}

.contact-box {
  padding: 26px 20px;
  text-align: center;
  height: 100%;
}

.contact-box:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
}

.contact-box .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #8b5cf6;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

body.light .contact-box h3 {
  color: #0f172a;
}

.contact-box p,
.contact-box a {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 0;
  word-break: break-word;
}

body.light .contact-box p,
body.light .contact-box a {
  color: #475569;
}

.contact-box a:hover {
  color: #8b5cf6;
}

.contact-form-card {
  padding: 36px;
}

.contact-form-card h3 {
  color: #ffffff;
}

body.light .contact-form-card h3 {
  color: #0f172a;
}

.contact-form-card .form-control {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

body.light .contact-form-card .form-control {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.25);
  color: #0f172a;
}

.contact-form-card .form-control:focus {
  background: rgba(15, 23, 42, 0.8);
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  outline: none;
}

body.light .contact-form-card .form-control:focus {
  background: #ffffff;
  border-color: #7c5bff;
  box-shadow: 0 0 0 3px rgba(124, 91, 255, 0.2);
}

.contact-form-card .form-group {
  margin-bottom: 20px;
}

/* ════════════════════════════════════════════════════
   10. MINIMAL FOOTER
   ═════════════════════════════════════════════════════ */
.minimal-footer {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(14px);
}

body.light .minimal-footer {
  border-top-color: rgba(148, 163, 184, 0.22);
  background: rgba(241, 245, 249, 0.95);
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 25px;
}

.footer-quick-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.footer-quick-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

body.light .footer-quick-links a {
  color: #475569;
}

.footer-quick-links a:hover {
  color: #8b5cf6;
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

body.light .footer-copyright {
  color: #94a3b8;
}

@media (max-width: 991px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-tagline {
    margin: 0 auto 30px;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-socials {
    justify-content: center;
  }
  .hero-stats {
    margin: 0 auto;
  }
  .orbit-container {
    width: 300px;
    height: 300px;
  }
  .orbit-icon {
    transform: rotate(calc(var(--idx) * 45deg)) translate(150px) rotate(calc(var(--idx) * -45deg));
  }
  .orbit-photo {
    width: 200px;
    height: 200px;
  }
}

/* ─── 10. BlogSpace & Article Post Cyber Styles ─── */
.blogspace-hero-section {
  position: relative;
  padding: 135px 20px 30px;
  text-align: center;
  z-index: 2;
}

.blogspace-hero-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.18;
}

body.light .blogspace-hero-title {
  color: #0f172a;
}

.blogspace-hero-accent {
  background: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blogspace-hero-desc {
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

body.light .blogspace-hero-desc {
  color: #475569;
}

.blogspace-search-wrap {
  max-width: 580px;
  margin: 0 auto 24px;
  width: 100%;
}

.blogspace-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.32);
  border-radius: 9999px;
  padding: 4px 16px 4px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light .blogspace-search-inner {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(124, 91, 255, 0.25);
  box-shadow: 0 8px 25px rgba(124, 91, 255, 0.08);
}

.blogspace-search-inner:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25), 0 12px 35px rgba(139, 92, 246, 0.18);
}

.blogspace-search-inner .search-icon {
  color: #8b5cf6;
  font-size: 0.95rem;
  margin-right: 12px;
  flex-shrink: 0;
}

.blogspace-search-inner input#blog-search {
  flex: 1;
  width: 100%;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 0.95rem;
  padding: 11px 0;
}

body.light .blogspace-search-inner input#blog-search {
  color: #0f172a !important;
}

.blogspace-search-inner input#blog-search::placeholder {
  color: #64748b;
  opacity: 1;
}

.blogspace-tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  max-width: 820px;
  margin: 0 auto 36px;
  padding: 0 10px;
}

.blogspace-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 9999px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.light .blogspace-tag-pill {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  color: #475569;
}

.blogspace-tag-pill:hover {
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.18);
  transform: translateY(-2px);
}

.blogspace-tag-pill.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border-color: #8b5cf6;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}

.blogspace-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  margin-top: 10px;
  margin-bottom: 60px;
  width: 100%;
}

@media (max-width: 991.98px) {
  .blogspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (max-width: 639.98px) {
  .blogspace-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

.blogspace-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  height: 100%;
}

.blogspace-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease !important;
}

body.light .blogspace-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(124, 91, 255, 0.15) !important;
  box-shadow: 0 10px 25px rgba(124, 91, 255, 0.08);
}

.blogspace-card-link:hover .blogspace-card {
  transform: translateY(-6px) !important;
  border-color: rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(139, 92, 246, 0.2) !important;
}

.blogspace-card-image {
  width: 100%;
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #1e1b4b;
}

.blogspace-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blogspace-card-content h3 {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 1.22rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
  margin: 10px 0 8px !important;
}

body.light .blogspace-card-content h3 {
  color: #0f172a !important;
}

.blogspace-card-content .blogspace-excerpt {
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 20px;
  flex: 1;
}

body.light .blogspace-card-content .blogspace-excerpt {
  color: #475569;
}

.blogspace-card-content .tech-chip {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blogspace-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #64748b;
  font-family: var(--font-sans, 'Manrope', sans-serif);
}

body.light .blogspace-meta {
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

/* ── Article Detail View (blog.html) ── */
.blogspace-post {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}

.blogspace-post-container {
  max-width: 860px;
  margin: 0 auto;
}

.blogspace-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
}

body.light .blogspace-title {
  color: #0f172a;
}

.blogspace-content {
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

body.light .blogspace-content {
  color: #334155;
}

.blogspace-content p {
  margin-bottom: 1.6rem;
}

.blogspace-content h2,
.blogspace-content h3 {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  color: #ffffff;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

body.light .blogspace-content h2,
body.light .blogspace-content h3 {
  color: #0f172a;
}
}
