/* ==========================================================================
   SYSTEM LOADER SCREEN (PRELOADER)
   ========================================================================== */
#sys-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0b0f17; /* Matches your dark background */
  z-index: 9999; /* Forces layer layout priority above all else */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: monospace;
  color: #3b82f6; /* Accent blue core */
  transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.6s;
}

/* Diagnostic Meta Container */
.loader-terminal {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loader-status {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

/* Outer framework track */
.loader-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

/* Moving fill node */
.loader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #3b82f6;
  box-shadow: 0 0 12px #3b82f6;
}

/* Systematic Page Reveal State */
.sys-ready #sys-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* --- DESIGN SYSTEM RESETS & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #030305;
    --surface-color: rgba(10, 10, 15, 0.4);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --neon-green: #00ffaa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* --- CANVAS ACCELERATION LAYER --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* ==========================================================================
   PORTFOLIO-SPECIFIC SYSTEM LOADER
   ========================================================================== */
#sys-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0b0f17; /* Matches your background */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #3b82f6; /* Accent blue */
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.5s;
}

.loader-terminal {
  width: 340px; /* Slightly wider to accommodate terminal text lines */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Terminal logs panel streaming live lines */
.terminal-logs {
  height: 60px;
  font-size: 0.72rem;
  color: #9ca3af; /* Subdued gray logs */
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  opacity: 0.8;
}

.terminal-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-line.success {
  color: #10b981; /* Green accents for completed tasks */
}

.loader-status {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.loader-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

/* Clear Page Reveal State */
.sys-ready #sys-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* --- MAGNETIC GLASSMORPHIC NAVIGATION BAR --- */
header {
    position: sticky;
    top: 1.5rem;
    z-index: 100;
    margin-top: 1.5rem;
}

nav {
    background: rgba(5, 5, 8, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

nav .logo {
    font-weight: 900;
    font-size: 1.3rem;
    background: linear-gradient(to right, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav .links {
    display: flex;
    gap: 1.5rem;
}

nav .links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
}

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

/* --- SYSTEM SECTIONS --- */
section {
    padding: 8rem 0 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 3rem;
    font-family: monospace;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* --- HERO COMPONENTS --- */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero .badge {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--accent-purple);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: monospace;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 30%, #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.cta-btn, .secondary-btn {
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s, border-color 0.3s;
}

.cta-btn {
    background: var(--text-primary);
    color: var(--bg-color);
}

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

.secondary-btn:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
}

/* --- GRID CARDS SYSTEM --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform-style: preserve-3d;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.08);
}

.project-header {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

.project-id { color: var(--accent-purple); font-weight: 700; }
.project-status { color: var(--neon-green); }

.project-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.metric .label { font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; }
.metric .val { font-size: 0.85rem; font-family: monospace; color: var(--text-primary); }

.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { background: rgba(255, 255, 255, 0.04); padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.7rem; color: var(--text-secondary); }

/* --- SKILLS GRID --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.skill-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.skill-meta { font-size: 0.8rem; color: var(--text-secondary); font-family: monospace; margin-bottom: 1.5rem; }
.skill-bar { height: 3px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; }
.skill-progress { height: 100%; background: linear-gradient(to right, var(--accent-purple), var(--accent-blue)); }

/* --- CONTACT LAYOUT --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact-metadata-nodes { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.meta-node { display: flex; flex-direction: column; }
.meta-label { font-size: 0.7rem; font-family: monospace; color: var(--text-secondary); text-transform: uppercase; }
.meta-val { color: var(--text-primary); text-decoration: none; font-size: 1.1rem; margin-top: 0.25rem; }

form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.8rem; font-family: monospace; color: var(--text-secondary); }
form input, form textarea {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}
form input:focus, form textarea:focus { border-color: var(--accent-purple); }
form button { background: var(--text-primary); color: var(--bg-color); border: none; padding: 1rem; border-radius: 8px; font-weight: 700; cursor: pointer; }

footer { margin-top: 8rem; padding: 4rem 0; border-top: 1px solid var(--border-color); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-secondary); }
.back-to-top { color: var(--text-secondary); text-decoration: none; }

@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    section { padding: 5rem 0; }
}

/* --- UNIVERSAL THEME SYSTEM DESIGN VARIABLES --- */
:root, html[data-theme="dark"] {
    --bg-color: #050508;
    --surface-color: rgba(13, 13, 18, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent: #00ffcc; /* Or your custom purple/blue accent */
    --accent-glow: rgba(0, 255, 204, 0.15);
    --input-bg: #111;
}

html[data-theme="light"] {
    --bg-color: #f4f5f7;
    --surface-color: rgba(255, 255, 255, 0.75);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent: #00b386; /* Adjusted for readable contrast on white */
    --accent-glow: rgba(0, 179, 134, 0.1);
    --input-bg: #ffffff;
}

/* --- THEME TOGGLE FLOATING ACTION NODE STYLING --- */
.theme-toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.theme-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Ensure the grid doesn't collapse layout instantly */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  transition: all 0.4s ease-in-out;
}

/* Base fade property for your cards */
.complex-tilt-card {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* 1. First state: fade out gracefully */
.complex-tilt-card.fade-out {
  opacity: 0;
  transform: scale(0.9);
}

/* 2. Final state: remove completely from layout flow */
.complex-tilt-card.hidden {
  display: none !important;
}

/* Container spacing adjustment */
.project-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 4px;
}

/* Upgraded Fancy Buttons */
.filter-btn {
  position: relative;
  background: rgba(18, 24, 36, 0.6); /* Translucent backing */
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 22px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase; /* Cleaner tech layout */
  font-family: system-ui, -apple-system, sans-serif;
  
  /* Hard hardware performance rendering transitions */
  transition: 
    color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.2s ease;
  
  overflow: hidden; /* Clips internal reflection sheen */
}

/* Hover effects */
.filter-btn:hover {
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(18, 24, 36, 0.9);
  transform: translateY(-2px); /* Slight hover lift */
  box-shadow: 0 6px 20px -5px rgba(59, 130, 246, 0.15);
}

/* Active State: The Neon Blue Indicator Core */
.filter-btn.active {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
  border-color: #3b82f6;
  box-shadow: 
    0 0 0 1px #3b82f6, 
    0 0 20px -3px rgba(59, 130, 246, 0.3);
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* Subtle Interactive Sheen Layer */
.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: none;
}

.filter-btn:hover::before {
  left: 100%;
  transition: left 0.6s ease-in-out;
}

/* Subtle click feedback downscale */
.filter-btn:active {
  transform: translateY(0) scale(0.96);
}

/* Ensure boxing calculations don't cause horizontal page overflows */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  width: 100%;
  overflow-x: hidden; /* Critical for preventing nasty sideways scrolling on small devices */
}

/* Background 3D Canvas layer must scale to match device viewport perfectly */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

main {
  width: 100%;
  max-width: 1400px; /* Limits size on ultra-wide monitors */
  margin: 0 auto;
  padding: 0 20px; /* Gives nice breathing room padding on mobile */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap; /* Allows menu to drop cleanly down if it hits a tiny screen width */
  gap: 15px;
}

nav .links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Prevents text from clipping off-screen */
}

@media (max-width: 600px) {
  nav {
    flex-direction: column; /* Stacks logo over link list on small phones */
    text-align: center;
  }
  nav .links {
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem; /* Slightly smaller typography target for compact panels */
  }
}

/* Universal Adaptive Grid Engine */
.grid, .skills-grid {
  display: grid;
  /* Automatically wraps items to a new line when columns narrow below 300px */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 25px;
  width: 100%;
  margin-top: 20px;
}

/* For exceptionally tiny older mobile displays (under 350px width) */
@media (max-width: 360px) {
  .grid, .skills-grid {
    grid-template-columns: 1fr; /* Force raw single-column stacking rule */
  }
}

.contact-layout {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.contact-info, .contact-layout .card {
  flex: 1;
  min-width: 280px;
}

/* Fallback split to stack parameters sequentially on tablet/mobile screens */
@media (max-width: 850px) {
  .contact-layout {
    flex-direction: column;
    gap: 30px;
  }
}

/* Ensure the split transmission form buttons stack cleanly on tiny mobile targets */
@media (max-width: 480px) {
  .routing-options {
    flex-direction: column !important;
  }
  .routing-btn {
    width: 100%;
  }
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem); /* Dynamically clamps scales across viewports safely */
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 20px;
}

/* Ensure data boxes do not burst layout margins */
.complex-tilt-card {
  width: 100%;
  overflow: hidden; 
}
/* Apply structural layouts for standard and wide desktop monitors */
@media (min-width: 1025px) {
  
  /* Limits projects & reviews to a clean 3-column layout maximum */
  #project .grid, #reviews .grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px; /* Generous separation space between system cards */
  }

  /* Limits about section nodes to a clean 2-column or 3-column layout maximum */
  #about .grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
  }
  
  /* Limits competency skills items into a clean 2-column balance matrix */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px;
  }
}

/* Adjustments for massive Ultra-Wide Monitors to prevent excessive stretching */
@media (min-width: 1600px) {
  main {
    max-width: 1440px; /* Keeps your portfolio contained beautifully in the center */
    margin: 0 auto;
  }
}

/* Force internal card metrics to wrap cleanly if names are long */
.project-metrics {
  display: flex;
  flex-direction: column; /* Stacks label-value nodes vertically instead of horizontally squeezing */
  gap: 10px;
  margin: 15px 0;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
  gap: 15px; /* Keeps spacing between metric name and values */
}

/* Ensure skill progress track or tags don't smash against card padding bounds */
.card-internal-wrapper {
  padding: 25px; /* Enforces uniform interior spacing buffer zones */
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.tag-row {
  display: flex;
  flex-wrap: wrap; /* Permits code tags to spill cleanly down into a fresh sub-line */
  gap: 8px;
  margin: 15px 0;
}

section {
  padding: 100px 0; /* Enforces structural vertical separation layout breaks */
  clear: both;
}

.hero {
  min-height: 80vh; /* Enforces that hero section owns the initial entry workspace viewport */
  display: flex;
  align-items: center;
}
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Keeps the navbar on top of your 3D canvas and cards */
  
  /* Adds a premium glass/blur effect so it reads clearly over your background */
  background: rgba(10, 10, 10, 0.75); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  
  /* Optional: Adds a subtle border below the navbar when scrolling */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
  
  /* Smooth transitions for mobile menu adjustments */
  transition: all 0.3s ease; 
}

/* Ensure the nav element fits perfectly inside the sticky header header */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px; /* Aligns with your main content wrapper width */
  margin: 0 auto;
  padding: 15px 20px; /* Uniform padding as you scroll */
}

/* 1. CRITICAL FIX: Remove any 'overflow-x: hidden' from the HTML tag if it exists, 
   as it completely breaks scrolling mechanics for child elements. */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Moving this safely to body only */
}

/* 2. BULLETPROOF FIXED NAVBAR SETUP */
header {
  position: fixed; /* Forces it to stay pinned relative to the viewport window */
  top: 0;
  left: 0;
  width: 100%;
  
  /* Super high z-index to stay above your 3D canvas and layer-z-high elements */
  z-index: 99999 !important; 
  
  /* Sci-fi frosted glass styling */
  background: rgba(10, 10, 10, 0.85) !important; 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Container alignment inside the fixed header */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px;
}

/* 3. HERO AREA ADJUSTMENT 
   Because 'position: fixed' pulls the header out of the normal page flow, 
   we add top padding to the main element so your Hero content doesn't get hidden behind it. */
main {
  padding-top: 80px; 
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Keeps the 3D particles in the deep background */
  pointer-events: none; /* Allows you to still click links through the canvas layer */
}

footer {
  width: 100%;
  padding: 60px 0 30px 0;
  margin-top: 80px;
  background: rgba(10, 10, 10, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* Matches the layout balance of image_0b8017.png */
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand-col .logo {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #888;
  max-width: 400px;
  margin-bottom: 20px;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
}

.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.footer-social-icons a:hover {
  color: var(--accent, #00ffcc);
  background: rgba(0, 255, 204, 0.05);
  border-color: var(--accent, #00ffcc);
}

.footer-links-col h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #fff;
  letter-spacing: 0.5px;
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links-col ul li a {
  color: #888;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links-col ul li a:hover {
  color: var(--accent, #00ffcc);
}

.footer-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  max-width: 1400px;
  margin: 40px auto 25px auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.85rem;
  color: #666;
}

.footer-credit {
  font-family: monospace;
}

/* Responsive Breakpoints: Ensures nothing collapses or merges on smaller displays */
@media (max-width: 850px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr; /* Stacks links side-by-side below brand profile */
  }
  .footer-brand-col {
    grid-column: span 2;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr; /* Clean single column stack rule on small viewports */
  }
  .footer-brand-col {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.contact-metadata-nodes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
}

/* Card layout wrapper modeled directly from image_0b929e.png */
.meta-node-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(245, 245, 247, 0.05); /* Soft dark/light responsive background blend */
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, background 0.2s ease;
}

.meta-node-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Rounded square background container framework around info graphics */
.meta-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(147, 112, 219, 0.15); /* Soft premium purple accent tint tint */
  color: #9370DB; /* Soft Purple Glyph Color */
  flex-shrink: 0;
}

.meta-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Strict label settings emphasizing style metadata */
.meta-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #88888d;
  text-transform: uppercase;
}

/* Content font definition rules */
.meta-val {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.meta-val:hover {
  color: #9370DB;
}

/* Media query adjustment boundary layers */
@media (max-width: 480px) {
  .meta-node-card {
    padding: 16px;
    gap: 15px;
  }
  .meta-val {
    font-size: 1rem;
  }
}
/* Container pairing links and CTA button smoothly side-by-side */
.links-wrapper {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Premium Sci-Fi Terminal 'Hire Me' Accent Button Styling */
.hire-me-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  
  /* Cyberpunk style defaults using your accent color variable or fallback violet */
  color: #9370DB; 
  background: rgba(147, 112, 219, 0.08);
  border: 1px solid rgba(147, 112, 219, 0.3);
  box-shadow: 0 0 10px rgba(147, 112, 219, 0.05);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hire-me-btn:hover {
  color: #ffffff;
  background: #9370DB;
  border-color: #9370DB;
  box-shadow: 0 0 20px rgba(147, 112, 219, 0.4);
  transform: translateY(-1px);
}

/* Responsive Scaling: Prevents layout collisions on smaller viewports */
@media (max-width: 768px) {
  .links-wrapper {
    gap: 15px;
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 12px;
  }
  .links-wrapper {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hire-me-btn {
    width: 100%;
    max-width: 200px;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  width: 100%;
}

.skill-item .card-internal-wrapper {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.skill-meta {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #888;
  min-height: 45px; /* Keeps card layouts uniformly proportioned */
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}

.skill-progress {
  height: 100%;
  background: var(--accent, #9370DB); /* Matches your purple layout highlights */
  border-radius: 3px;
}

/* Rigid Grid protections across clear desktop displays */
@media (min-width: 1025px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Balanced 2-column dashboard layout matrix */
    gap: 30px;
  }
}
/* Pinned Lower Bottom Navigation Framework */
.origin-nav-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  
  /* OVERRIDE GUARD: High z-index ensures it sits above all canvas and WebGL viewports */
  z-index: 999999 !important; 
  
  /* FORCE VISIBILITY */
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  
  color: #9370DB; /* Matches your core purple accent design */
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(147, 112, 219, 0.4);
  border-radius: 30px;
  cursor: pointer;
  
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease-in-out;
}
/* Base styles for your button */
.origin-nav-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

/* Class to hide the button */
.origin-nav-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevents clicking while invisible */
}
/* Hover Interactive State */
.origin-nav-btn:hover {
  color: #ffffff !important;
  background: #9370DB !important;
  border-color: #9370DB !important;
  box-shadow: 0 0 15px rgba(147, 112, 219, 0.6);
  transform: translateY(-2px);
}

.origin-nav-btn:hover svg {
  transform: translateY(-2px);
}

.origin-nav-btn svg {
  transition: transform 0.2s ease;
}

/* Structural Breakpoints: Adjusts seamlessly for mobile viewports */
@media (max-width: 600px) {
  .origin-nav-btn {
    bottom: 20px;
    right: 20px;
    padding: 10px 12px;
  }
  .origin-label {
    display: none; /* Collapses text node to preserve UI real estate on mobile screens */
  }
}

/* Apply structured margins to the desktop viewing matrix */
@media (min-width: 1025px) {
  
  /* Restricts content from blowing out layout margins on wide displays */
  main, 
  header nav, 
  footer .footer-grid, 
  footer .footer-bottom {
    max-width: 1280px;      /* Restricts extreme width stretching */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;  /* Safety buffer block margins */
    padding-right: 40px !important;
  }

  /* Structural buffer zone enforcement for page sections */
  section {
    max-width: 1280px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

/* Hard protective barrier for Ultrawide Monitors (1600px and up) */
@media (min-width: 1600px) {
  main, section, header nav, footer .footer-grid {
    max-width: 1400px; /* Expands perfectly just for massive resolutions */
  }
}

/* Container rules to ensure both cards sit perfectly side-by-side on desktop */
#about .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

/* Specific styling for the profile image card */
.profile-picture-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Keeps it perfectly square */
    margin: 1.5rem 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Matches your card edges */
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2); /* Fallback background */
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents stretching */
    filter: grayscale(20%) contrast(110%); /* Subtle tech filter */
    transition: filter 0.3s ease;
}

.profile-picture-card:hover .profile-img {
    filter: grayscale(0%) contrast(100%);
}

/* Optional: Cyan/Green security tag to contrast your active engineer tag */
.project-status.security {
    background: rgba(0, 255, 200, 0.1);
    color: #00ffc8;
    border: 1px solid rgba(0, 255, 200, 0.2);
}

/* Optional: Sci-Fi animated scanning line overlay */
.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffc8, transparent);
    opacity: 0.4;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}
/* Filter Container Styling */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

/* Individual Filter Buttons */
.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Hover and Active State */
.filter-btn:hover, .filter-btn.active {
    background: #fff;
    color: #000; /* Invert colors based on your site's aesthetic */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Smooth Card Transitions */
.complex-tilt-card {
    transition: opacity 0.3s ease, transform 0.3s ease, display 0.3s ease allow-discrete;
}

#reviews {
    padding: 100px 4%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Flex Track: Perfectly responsive multi-column layout */
.review-track {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
}

#reviews .complex-tilt-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    flex: 1 1 380px; /* Adapts dynamically down to mobile breakpoints */
    max-width: 420px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

#reviews .complex-tilt-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Modern Minimal Star Styling */
.review-rating {
    color: #ffc107; /* Sleek gold accent */
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

/* Enhanced Review Text Typography */
.review-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin-bottom: 30px;
    min-height: 110px; /* Align content boxes nicely */
}

/* Status Tags matching your layout syntax */
.project-status.peer-review {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.project-status.verified {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* Metadata Footer formatting */
.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.reviewer-name {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

.reviewer-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}
#skills {
    padding: 100px 4%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 3-Column Balanced Responsive Grid Layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Inherits your exact portfolio card structure and glass properties */
.skill-item.complex-tilt-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

/* Card hover glow matches your primary project cards */
.skill-item.complex-tilt-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Header Info Alignment */
.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.skill-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff; /* Static high-contrast typography token */
    letter-spacing: 0.5px;
}

/* Data marker styling matches your project-id tags (e.g., SYS-01) */
.skill-percentage {
    font-family: monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sleek progress line built to layer on layer-z-low */
.skill-bar {
    width: 100%;
    height: 4px; 
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

/* The fill utilizes your theme's clean white/translucent gradient profile */
.skill-progress {
    height: 100%;
    /* Immersive transitioning gradient from neon blue to sleek purple */
    background: linear-gradient(90deg, #00d2ff 0%, #a960ee 100%);
    /* Layered glow effect that makes the bars pop off the dark layout background */
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3), 0 0 20px rgba(169, 96, 238, 0.2);
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}
.skill-item.complex-tilt-card:hover .skill-percentage {
    color: #00d2ff;
    border-color: rgba(169, 96, 238, 0.3);
    background: rgba(169, 96, 238, 0.05);
}

/* Tech Pills Container running fluid flex alignment */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Badges configured to look identical to your project tags (.tag) */
.tech-pill {
    font-size: 0.78rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.5); /* Dimmed state for text hierarchies */
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: default;
}

/* Activates tag highlights safely on layout interactions */
.skill-item.complex-tilt-card:hover .tech-pill {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

/* Meta Icon Box Container Placement */
.meta-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-right: 12px;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6); /* Default elegant muted theme tone */
    transition: all 0.3s ease;
}

/* When hovering over the skill card, light up the icons using your theme colors */
.skill-item.complex-tilt-card:hover .meta-icon-box {
    color: #00d2ff; /* Your theme's neon blue */
    border-color: rgba(169, 96, 238, 0.3); /* Transparent purple border border */
    background: rgba(169, 96, 238, 0.05);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2); /* Soft neon blue radial backing */
}

/* About Section Grid Layout */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Base text styling for the bio */
.about-description {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Beautiful Timeline UI for Education & Experience */
.timeline-wrapper {
    position: relative;
    padding-left: 20px;
    margin-top: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 15px;
}

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

/* The glowing dot on the timeline */
.timeline-icon {
    position: absolute;
    left: -46px; /* Centers it perfectly on the border */
    top: 0;
    width: 28px;
    height: 28px;
    background: rgba(169, 96, 238, 0.1);
    border: 1px solid rgba(169, 96, 238, 0.4);
    color: #00d2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
    transition: all 0.3s ease;
}

/* Highlight the timeline icon when hovering over the card */
.complex-tilt-card:hover .timeline-icon {
    background: #00d2ff;
    color: #000;
    border-color: #00d2ff;
    box-shadow: 0 0 15px #00d2ff, 0 0 30px rgba(169, 96, 238, 0.4);
}

/* Timeline Typography */
.timeline-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.timeline-subtitle {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}

.timeline-subtitle .highlight {
    color: #00d2ff; /* Accents grades/scores in neon blue */
    font-weight: 600;
}

.timeline-date {
    display: block;
    font-size: 0.8rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

/* Small tag specifically for experience dates */
.date-pill {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #a960ee; /* Purple accent */
}

.timeline-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}



.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center; /* This forces the 4th item to sit perfectly in the center */
}

/* Force items to behave like a 3-column responsive row layout */
.about-grid .card {
    flex: 1 1 calc(33.333% - 30px);
    min-width: 350px; /* Keeps dimensions stable down to mobile breakpoints */
}
/* Core Styling for the Hire Me Button */
.hire-me-btn.magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-radius: 30px; /* Modern pill profile */
    
    /* Vibrant theme gradient shifting from neon blue to sleek purple */
    background: linear-gradient(135deg, #00d2ff 0%, #a960ee 100%);
    color: #ffffff;
    
    /* Layered glow effect */
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2), 0 4px 30px rgba(169, 96, 238, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.3s ease, 
                filter 0.3s ease;
    cursor: pointer;
}

/* Hover Interaction Layer */
.hire-me-btn.magnetic:hover {
    /* Amplifies the color vibrancy and expanding glow when hovered or magnetized */
    filter: brightness(1.1);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.45), 0 0 40px rgba(169, 96, 238, 0.3);
}

/* Active pressing state */
.hire-me-btn.magnetic:active {
    transform: scale(0.96);
    filter: brightness(0.95);
}

/* Container Layout */
.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

/* Base style shared across both magnetic action buttons */
.hero-actions .magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-radius: 30px;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.3s ease, 
                background 0.3s ease, 
                color 0.3s ease,
                border-color 0.3s ease;
}

/* ==========================================================================
   1. PRIMARY CTA BUTTON (Initiate Connection)
   ========================================================================== */
.cta-btn.magnetic {
    background: linear-gradient(135deg, #00d2ff 0%, #a960ee 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2), 0 4px 30px rgba(169, 96, 238, 0.15);
}

.cta-btn.magnetic:hover {
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.45), 0 0 40px rgba(169, 96, 238, 0.3);
    filter: brightness(1.1);
}

/* ==========================================================================
   2. SECONDARY BUTTON (Inspect Systems)
   ========================================================================== */
.secondary-btn.magnetic {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fluid transition to full color on hover */
.secondary-btn.magnetic:hover {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(169, 96, 238, 0.1) 100%);
    border-color: #a960ee;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(169, 96, 238, 0.2);
}

/* Click Action feedback for both elements */
.hero-actions .magnetic:active {
    transform: scale(0.96);
}

/* Extra utility classes */
.text-center { text-align: center; justify-content: center; }
.accent-text { color: #00d2ff !important; font-weight: bold; }
.metric .label i { margin-right: 6px; color: #a960ee; }
.theme-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Filter Controls Container */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center; /* Centers the filtering row */
}

/* Base Filter Button Styling */
.filter-btn.magnetic {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px; /* Clean rounded capsule profile */
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1),
                background 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Hover Interaction State */
.filter-btn.magnetic:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 210, 255, 0.4); /* Subtle glowing blue border hint */
}

/* ==========================================================================
   ACTIVE FILTER STATE (Selected Tab)
   ========================================================================== */
.filter-btn.magnetic.active {
    background: linear-gradient(135deg, #00d2ff 0%, #a960ee 100%);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    /* Immersive dual-color glow */
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25), 0 4px 25px rgba(169, 96, 238, 0.2);
}

/* Hovering while button is already active keeps it brilliant */
.filter-btn.magnetic.active:hover {
    filter: brightness(1.05);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4), 0 0 30px rgba(169, 96, 238, 0.3);
}

/* Click feedback compression */
.filter-btn.magnetic:active {
    transform: scale(0.95);
}

/* Contact Meta Cards Container Layout */
.meta-node-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Interaction over the Entire Node Card */
.meta-node-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(169, 96, 238, 0.2); /* Transparent purple border touch */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Icon Box Custom Adjustments */
.meta-node-card .meta-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-right: 16px;
    color: rgba(255, 255, 255, 0.6); /* Muted default stroke state */
    transition: all 0.3s ease;
}

/* Direct Target SVG Vector Strokes for Blue & Purple Core */
.meta-node-card .meta-icon-box svg {
    stroke: url(#bluePurpleGradient) rgba(255, 255, 255, 0.6); /* Handled gracefully via CSS fallback */
    transition: stroke 0.3s ease;
}

/* Activate Glow Matrix on Box Hover */
.meta-node-card:hover .meta-icon-box {
    color: #00d2ff; /* Lights up icon inside with neon blue */
    background: rgba(169, 96, 238, 0.06); /* Infuses warm purple atmosphere background */
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
}

/* Internal Metadata Typography Hierarchy */
.meta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: #a960ee; /* The clean purple token handles labels beautifully */
    letter-spacing: 1px;
    text-transform: uppercase;
}

.meta-val {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Link-specific Hover Action for Anchors (like Phone and Mail links) */
a.meta-val:hover {
    color: #00d2ff; /* Turns neon blue when interacting with actual numbers/links */
}
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1000; /* Ensures it stays on top */
}

/* This class will be toggled via JavaScript */
nav.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
}
nav {
    position: fixed !important;
    top: 0 !important;
    z-index: 999999 !important;
}

.origin-nav-btn {
    position: fixed;
    bottom: 30px; /* Adjust placement as needed */
    right: 30px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;           /* Hidden by default at the origin */
    visibility: hidden;   /* Keeps it unclickable when invisible */
    z-index: 9999;
}

/* This class will be applied when the user scrolls down */
.origin-nav-btn.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-to-origin {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 45px !important;  /* Ensure it has a physical size */
    height: 45px !important; /* Ensure it has a physical size */
    z-index: 999999 !important; /* Forces it to the absolute top layer */
    
    /* Smooth transition */
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    
    /* Start hidden at the top */
    opacity: 0 !important;
    visibility: hidden !important;
}

/* This must override the hidden properties completely */
#scroll-to-origin.visible {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important; /* Ensures the SVG inside renders nicely */
    align-items: center;
    justify-content: center;
}

/* 1. The main container that safely anchors both buttons */
/* 1. The main container that safely stacks both buttons */
.floating-btn-group {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    display: flex !important;
    flex-direction: column !important; /* Vertically stacks them */
    gap: 14px !important;              /* Clean gap so they never overlap */
    align-items: center !important;
    z-index: 999999 !important;        /* Forces them on top of everything */
}

/* 2. Base structural styles for both buttons */
.whatsapp-btn, #scroll-to-origin {
    position: static !important;       /* Removes conflicting fixed screen calculations */
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
}

/* 3. WhatsApp Button Styling (Kept as standard green) */
.whatsapp-btn {
    background-color: #25D366 !important;
    color: white !important;
}
.whatsapp-btn:hover {
    transform: scale(1.1) !important;
    background-color: #20ba5a !important;
}

/* 4. Scroll to Origin - Hidden State (Blue & Purple Gradient) */
#scroll-to-origin {
    /* Vivid Blue to Royal Purple Gradient */
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%) !important; 
    color: #ffffff !important; /* White arrow to stand out on the gradient */
    
    /* Safely hidden by default at the very top */
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important; /* Prevents an empty physical space at the bottom */
}

/* 5. Scroll to Origin - Visible State (Triggered via JS) */
#scroll-to-origin.visible {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important; /* Re-introduces it into the flex stack */
}

#scroll-to-origin.visible:hover {
    transform: scale(1.1) !important;
    /* Shifts gradient angle slightly on hover for a dynamic fluid effect */
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%) !important; 
}


/* --- FOOLPROOF LIGHT THEME OVERRIDES --- */

/* 1. Main Background */
body.light-theme, 
body.light-theme main, 
body.light-theme #canvas-container {
    background-color: #f4f6f9 !important;
    background: #f4f6f9 !important;
    color: #1a1a24 !important;
}

/* 2. Portfolio Cards & Skill Grids */
body.light-theme .card, 
body.light-theme .skill-item, 
body.light-theme .meta-node-card {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1a1a24 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* 3. Global Text Overrides */
body.light-theme h1, 
body.light-theme h2, 
body.light-theme h3, 
body.light-theme .skill-title,
body.light-theme .timeline-title {
    color: #0f172a !important;
}

body.light-theme p, 
body.light-theme .about-description, 
body.light-theme .timeline-desc, 
body.light-theme .review-text, 
body.light-theme .footer-description,
body.light-theme .meta-label {
    color: #475569 !important;
}

/* 4. Navbar & Footer Background Tweaks */
body.light-theme nav, 
body.light-theme footer {
    background-color: rgba(244, 246, 249, 0.95) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
body.light-theme nav a,
body.light-theme .logo {
    color: #1a1a24 !important;
}

/* 5. Theme Toggle Button Sizing */
#theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin: 0 5px;
    border-radius: 50%;
}

/* ==========================================================================
   HIGH-CONTRAST CYBER-LIGHT THEME OVERRIDES 
   ========================================================================== */

/* 1. Base Document Reset */
/* ==========================================================================
   HIGH-CONTRAST LIGHT THEME OPERATORS (WHITE, BLACK, PURPLE, BLUE)
   ========================================================================== */

/* 1. Primary Background Overrides (Forced White) */
body.light-theme, 
body.light-theme main {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #000000 !important; /* Forced Black Text */
}

/* Re-maps the background lines cleanly so they become visible wireframes */
body.light-theme #canvas-container {
    opacity: 0.15 !important;
    filter: invert(1) contrast(1.5) brightness(0.8);
}

/* 2. Portfolio Structural Containers & Skill Item Blocks */

/* ==========================================================================
   NEW PROJECT CARDS — Reference Design
   ========================================================================== */

.projects-new-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 0;
}

/* Base card */
.project-card-new {
    background: rgba(8, 8, 16, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.15s ease;
}

.project-card-new:hover {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.12);
}

/* Colored top accent strip */
.pcn-top-bar {
    height: 2px;
    background: linear-gradient(90deg, #a855f7 0%, #3b82f6 50%, #00d2ff 100%);
    flex-shrink: 0;
}
.cyan-bar  { background: linear-gradient(90deg, #00d2ff 0%, #a960ee 100%); }
.green-bar { background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%); }

/* Header row */
.pcn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 12px;
    font-family: monospace;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.pcn-id { color: #a855f7; font-weight: 800; }

.pcn-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    color: #10b981;
}
.pcn-status.cyan { color: #00d2ff; }

.pcn-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.green-dot { background: #10b981; box-shadow: 0 0 8px #10b981; animation: pulse-dot 2s ease-in-out infinite; }
.cyan-dot  { background: #00d2ff; box-shadow: 0 0 8px #00d2ff; animation: pulse-dot 2s ease-in-out infinite; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

/* Divider */
.pcn-divider {
    height: 1px;
    margin: 0 24px;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.5), rgba(59, 130, 246, 0.4), transparent);
}
.cyan-divider  { background: linear-gradient(90deg, rgba(0, 210, 255, 0.5), rgba(169, 96, 238, 0.3), transparent); }
.green-divider { background: linear-gradient(90deg, rgba(16, 185, 129, 0.5), rgba(59, 130, 246, 0.3), transparent); }

/* Body */
.pcn-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Large number + label */
.pcn-number-row { margin-bottom: 14px; }

.pcn-label {
    font-family: monospace;
    font-size: 0.68rem;
    color: #00d2ff;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.pcn-number {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1;
    font-family: monospace;
    background: linear-gradient(135deg, #00d2ff 0%, #a960ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pcn-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.25;
}

.pcn-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
    margin-bottom: 18px;
}

/* Architecture flow diagram */
.pcn-arch-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.pcn-arch-label {
    font-family: monospace;
    font-size: 0.65rem;
    color: #00d2ff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 600;
}

.pcn-arch-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.pcn-arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 60px;
}

.pcn-arch-node span {
    font-family: monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.3;
}

.pcn-arch-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a855f7;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.project-card-new:hover .pcn-arch-icon {
    background: rgba(0, 210, 255, 0.12);
    border-color: rgba(0, 210, 255, 0.4);
    color: #00d2ff;
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.2);
}

.pcn-arch-arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
    flex-shrink: 0;
    font-weight: 300;
}

/* Metrics box */
.pcn-metrics-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 4px 16px;
    margin-bottom: 18px;
}

.pcn-metric-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.pcn-metric-row:last-child { border-bottom: none; }

.pcn-metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a855f7;
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.pcn-metric-icon.green-icon {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.22);
    color: #10b981;
}

.project-card-new:hover .pcn-metric-icon {
    background: rgba(0, 210, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.3);
    color: #00d2ff;
}

.pcn-metric-label {
    font-family: monospace;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 0 0 120px;
}

.pcn-metric-val {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    font-family: monospace;
}

/* Tech stack */
.pcn-stack-label {
    font-family: monospace;
    font-size: 0.65rem;
    color: #00d2ff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

.pcn-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.pcn-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.73rem;
    font-family: monospace;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.project-card-new:hover .pcn-tag {
    border-color: rgba(168, 85, 247, 0.3);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(168, 85, 247, 0.05);
}

/* VIEW IN DETAIL button */
.pcn-view-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    background: rgba(168, 85, 247, 0.07);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: #a855f7;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: auto;
}

.pcn-view-btn:hover {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.55);
    color: #fff;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.pcn-view-btn.cyan-btn {
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.06);
    border-color: rgba(0, 210, 255, 0.2);
}
.pcn-view-btn.cyan-btn:hover {
    background: rgba(0, 210, 255, 0.15);
    border-color: rgba(0, 210, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.pcn-view-btn.green-btn {
    color: #10b981;
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.2);
}
.pcn-view-btn.green-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    color: #fff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.pcn-view-icon {
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.pcn-view-btn:hover .pcn-view-icon { transform: translateX(3px); }

/* Feature bar below projects */
.projects-feature-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
}

.feature-bar-item {
    background: rgba(8, 8, 16, 0.9);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}
.feature-bar-item:last-child { border-right: none; }
.feature-bar-item:hover { background: rgba(168, 85, 247, 0.05); }

.feature-bar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-bar-text { display: flex; flex-direction: column; gap: 4px; }
.feature-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.feature-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: monospace;
}

@media (max-width: 768px) {
    .projects-feature-bar { grid-template-columns: 1fr; }
    .feature-bar-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .feature-bar-item:last-child { border-bottom: none; }
    .pcn-arch-flow { justify-content: center; }
    .pcn-metric-label { flex: 0 0 90px; }
}

@media (min-width: 1025px) {
    .projects-new-grid { grid-template-columns: repeat(3, 1fr); }
}

