/* ==========================================================================
   CHANDAN CHAKROBORTTY — INDUSTRIAL GRADE DESIGN SYSTEM
   Modern, Cyber-Enterprise Aesthetic, High-Performance Vanilla CSS
   Full-Spectrum Mobile & Desktop Responsive Engine (320px to 4K)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-main: #070a13;
  --bg-surface: #0d121f;
  --bg-surface-elevated: #131b2e;
  --bg-surface-glass: rgba(13, 18, 31, 0.88);
  --bg-surface-hover: #1c2742;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(6, 182, 212, 0.4);
  --border-glow: rgba(59, 130, 246, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #00f2fe;

  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #3b82f6 50%, #6366f1 100%);
  --grad-surface: linear-gradient(180deg, rgba(19, 27, 46, 0.8) 0%, rgba(13, 18, 31, 0.95) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.15), transparent 70%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.2);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Hind Siliguri', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-glass: rgba(255, 255, 255, 0.92);
  --bg-surface-hover: #e2e8f0;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-active: rgba(37, 99, 235, 0.4);
  --border-glow: rgba(37, 99, 235, 0.2);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-accent: #0284c7;

  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.08), transparent 70%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.12);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  width: 100%;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-break: break-word;
}

p {
  color: var(--text-secondary);
  word-break: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 5.5rem 0;
  position: relative;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
  padding: 0 0.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 1rem;
  max-width: 100%;
  white-space: normal;
}

.badge-tag.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.25);
}

.badge-tag.amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.25);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   NAVIGATION BAR & DROPDOWN MENU
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4.5rem;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-logo .logo-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-cyan);
  object-fit: cover;
}

.brand-logo .logo-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-btn {
  background: transparent;
  border: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
}

.nav-dropdown-btn:hover {
  color: var(--text-primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 1010;
}

.dropdown-menu.show, .nav-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--bg-surface-hover);
  color: var(--accent-cyan);
  padding-left: 1.35rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.mobile-toggle-btn {
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS & CTAs (FLEXIBLE, NO OVERFLOW)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  max-width: 100%;
  word-break: normal;
}

.btn-primary {
  background: var(--grad-primary);
  color: #070a13;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-active);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #20ba59;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.btn-scholar {
  background: #4285f4;
  color: #ffffff;
}

.btn-scholar:hover {
  background: #3367d6;
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO COMMAND CENTER SECTION
   ========================================================================== */

.hero-section {
  min-height: calc(100vh - 4.5rem);
  padding: 6.5rem 0 3.5rem;
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  position: relative;
  width: 100%;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-beacon 2s infinite;
}

@keyframes pulse-beacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-name {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}

.hero-role-wrapper {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  min-height: 2rem;
  flex-wrap: wrap;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.3em;
  background: var(--accent-cyan);
  margin-left: 4px;
  animation: blink 0.8s infinite;
}

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

.hero-bio {
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

/* High-Impact Metric Telemetry Counter */
.hero-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  width: 100%;
}

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

.metric-number {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.metric-number span {
  color: var(--accent-cyan);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Terminal & Profile Visual Component */
.hero-visual {
  position: relative;
  width: 100%;
}

.cyber-terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  width: 100%;
}

.terminal-header {
  background: var(--bg-surface-elevated);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.5rem;
}

.terminal-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: hidden;
  word-break: break-word;
}

.terminal-avatar-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.terminal-avatar {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-cyan);
  object-fit: cover;
  flex-shrink: 0;
}

.t-prompt {
  color: var(--accent-emerald);
}
.t-cmd {
  color: var(--text-primary);
  font-weight: 600;
}
.t-key {
  color: var(--accent-cyan);
}
.t-val {
  color: #f1f5f9;
}
.t-highlight {
  color: var(--accent-amber);
}

/* ==========================================================================
   VERIFIED INDUSTRIAL CERTIFICATIONS & CREDENTIALS
   ========================================================================== */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1.25rem;
  width: 100%;
}

.cert-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.cert-year-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.cert-icon {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 0.85rem;
}

.cert-code {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cert-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   HIGH-VALUE HIRING TRACKS & ENGAGEMENT MODELS
   ========================================================================== */

.hiring-tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  width: 100%;
}

.hiring-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hiring-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.hiring-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hiring-card:hover::before {
  opacity: 1;
}

.hiring-card .btn {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  justify-content: center;
  word-break: normal;
}

.hiring-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 1rem;
  align-self: flex-start;
}

.hiring-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.hiring-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.hiring-benefits {
  list-style: none;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hiring-benefits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hiring-benefits li i {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ==========================================================================
   CASE STUDIES & ARCHITECTURAL TEARDOWNS
   ========================================================================== */

.case-study-hero {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.case-study-article {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.case-study-article:hover {
  border-color: var(--border-active);
}

.arch-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.arch-flow-node {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  position: relative;
}

.arch-flow-node.highlight {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.arch-flow-node-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.arch-flow-node-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.benchmark-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.benchmark-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.benchmark-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.benchmark-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.code-snippet-box {
  background: #05070e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e2e8f0;
  overflow-x: auto;
  margin: 1.25rem 0;
  line-height: 1.5;
}

/* ==========================================================================
   OPEN SOURCE ECOSYSTEM
   ========================================================================== */

.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.os-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.os-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.os-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.os-repo-title {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.os-stats {
  display: flex;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.os-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* ==========================================================================
   ENGINEERING & SYSTEM ARCHITECTURE
   ========================================================================== */

.arch-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.pillar-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.pillar-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.pillar-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pillar-points {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pillar-points li {
  display: flex;
  gap: 0.5rem;
}

.pillar-points li i {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ==========================================================================
   TECHNICAL BLOG / ARTICLES
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.blog-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.blog-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================================================
   INTERACTIVE ENGINEERING LAB
   ========================================================================== */

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 2rem;
  width: 100%;
}

.lab-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.lab-card:hover {
  border-color: var(--border-active);
}

.lab-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.lab-output-box {
  background: #05070e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #00f2fe;
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
  word-break: break-all;
  margin-top: 1rem;
}

.lab-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

.lab-slider-row input[type="range"] {
  width: 60%;
  accent-color: var(--accent-cyan);
}

/* ==========================================================================
   ATS-OPTIMIZED RESUME PAGE
   ========================================================================== */

.resume-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.resume-track-toggle {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.track-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.track-btn.active {
  background: var(--accent-cyan);
  color: #070a13;
  border-color: var(--accent-cyan);
}

.resume-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.resume-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.resume-section-title {
  font-size: 1.3rem;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resume-item {
  margin-bottom: 1.5rem;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.resume-job-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.resume-company {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.resume-dates {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-emerald);
}

/* Print Stylesheet for ATS / PDF Output */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .navbar, .footer, .floating-whatsapp, .resume-track-toggle, .btn-print-hide {
    display: none !important;
  }
  .resume-container {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    color: #000000 !important;
  }
  h1, h2, h3, h4, .resume-job-title, .resume-section-title {
    color: #000000 !important;
  }
  p, li, .resume-company {
    color: #333333 !important;
  }
}

/* ==========================================================================
   USES & WORKSTATION PAGE
   ========================================================================== */

.uses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
  width: 100%;
}

.uses-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.uses-category-title {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.uses-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.uses-list-item h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.uses-list-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   NOW PAGE
   ========================================================================== */

.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
  width: 100%;
}

.now-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.now-card-title {
  font-size: 1.25rem;
  color: var(--accent-emerald);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   INTERACTIVE ARCHITECTURE & SKILL MATRIX
   ========================================================================== */

.skills-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.5rem;
  width: 100%;
}

.skill-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.skill-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.skill-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.skill-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  padding: 0.3rem 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   FEATURED ENTERPRISE CASE STUDIES (PROJECTS)
   ========================================================================== */

.projects-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-cyan);
  color: #070a13;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.project-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  width: 100%;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-header-img {
  height: 180px;
  background: var(--bg-surface-elevated);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-header-img i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.project-card:hover .project-header-img i {
  transform: scale(1.08);
  color: rgba(6, 182, 212, 0.25);
}

.project-badge-category {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.25rem 0.65rem;
  background: rgba(7, 10, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.project-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.project-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-hover);
  color: var(--text-secondary);
}

.project-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-primary);
}

.project-link:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   RESEARCH & CYBERSECURITY RADAR HUB
   ========================================================================== */

.research-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.research-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.research-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.research-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.research-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.research-abstract {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.research-citation-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   INTERACTIVE PROJECT COST CALCULATOR
   ========================================================================== */

.calculator-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.calc-options-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.calc-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
}

.calc-chip {
  cursor: pointer;
  user-select: none;
  max-width: 100%;
}

.calc-chip input {
  display: none;
}

.calc-chip span {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  word-break: break-word;
}

.calc-chip input:checked + span {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.calc-summary-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
}

.calc-price-display {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
}

.calc-timeline-display {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent-emerald);
}

/* ==========================================================================
   EXPERIENCE & ACHIEVEMENTS TIMELINE
   ========================================================================== */

.timeline-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 2rem;
  width: 100%;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 7px;
  width: 2px;
  height: 100%;
  background: var(--border-subtle);
}

.timeline-card {
  position: relative;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  transition: all var(--transition-normal);
  width: 100%;
}

.timeline-card:hover {
  border-color: var(--border-active);
  transform: translateX(4px);
}

.timeline-dot {
  position: absolute;
  top: 2rem;
  left: -2.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.timeline-role {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timeline-bullets {
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.timeline-bullets li {
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   TESTIMONIALS (CLIENT TRUST)
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.testimonial-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  width: 100%;
}

.testimonial-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.testimonial-rating {
  color: #fbbf24;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}

.testimonial-quote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RICH FAQ ACCORDION (SEO POWERED)
   ========================================================================== */

.faq-accordion-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.faq-item {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
  width: 100%;
}

.faq-item {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  width: 100%;
}

.faq-item:hover {
  border-color: rgba(0, 242, 254, 0.3);
}

.faq-item.open,
.faq-item.active {
  border-color: var(--border-active);
  background: rgba(13, 22, 41, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.15);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  user-select: none;
  gap: 1rem;
  transition: color 0.25s ease;
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-toggle-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
  color: var(--accent-cyan);
  flex-shrink: 0;
  font-size: 0.95rem;
}

.faq-item.open .faq-toggle-icon,
.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: #10b981;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.open .faq-answer,
.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 600px;
}

/* ==========================================================================
   ENTERPRISE CONTACT FORM & BOOKING
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  width: 100%;
}

.contact-info-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.contact-detail-row {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.contact-icon-box {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

.footer-brand p {
  margin: 0.85rem 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

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

.footer-social-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--accent-cyan);
  padding-left: 3px;
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FLOATING BEACON & MODAL
   ========================================================================== */

.floating-whatsapp {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 3.5rem;
  height: 3.5rem;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all var(--transition-normal);
  animation: pulse-beacon 2.5s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.08) rotate(4deg);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ==========================================================================
   ADVANCED RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablets (<= 860px) */
@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: 4.5rem;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.mobile-open {
    transform: translateY(0);
  }
  .mobile-toggle-btn {
    display: flex;
  }
  .nav-link {
    font-size: 1.05rem;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }
  .nav-dropdown {
    flex-direction: column;
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    display: flex;
    width: 100%;
    margin-top: 0.5rem;
    background: var(--bg-surface-hover);
    box-shadow: none;
  }
  .resume-container {
    padding: 1.5rem;
  }
}

/* Mobile Phablets (<= 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 4rem 0;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .navbar .btn-primary {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .timeline-container {
    padding-left: 1.5rem;
  }
  .timeline-dot {
    left: -1.9rem;
    width: 14px;
    height: 14px;
  }
  .resume-track-toggle {
    flex-direction: column;
  }
  .track-btn {
    width: 100%;
  }
}

/* Small Mobiles (<= 400px) */
@media (max-width: 400px) {
  .hero-metrics-bar {
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
    gap: 0.75rem;
  }
  .metric-number {
    font-size: 1.4rem;
  }
  .metric-label {
    font-size: 0.72rem;
  }
  .calc-chip span {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }
  .floating-whatsapp {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.4rem;
  }
}


/* ==========================================================================
   MEGA ANIMATION SUITE & CYBER-INDUSTRIAL VISUAL FX
   High-Performance Hardware-Accelerated 60FPS Animations
   ========================================================================== */

/* 1. Cyber Canvas Background Layer */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  transition: opacity 0.5s ease;
}

[data-theme="light"] #cyber-canvas {
  opacity: 0.22;
}

/* Ensure all content layers sit above canvas */
.navbar, main, footer, .modal-backdrop, .floating-widgets, .section {
  position: relative;
  z-index: 1;
}

/* 2. Keyframes Library */
@keyframes cyberFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.4deg);
  }
}

@keyframes cyberFloatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2), inset 0 0 15px rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.3);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.45), inset 0 0 25px rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.7);
  }
}

@keyframes textShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes radarPing {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  60% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes borderGlowLoop {
  0%, 100% {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.12);
  }
  33% {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.18);
  }
  66% {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.12);
  }
}

@keyframes scanlineAnim {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100%;
  }
}

@keyframes badgeGlowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 242, 254, 0);
  }
}

/* 3. High-Impact Animated Utility Classes */
.animate-float {
  animation: cyberFloat 5s ease-in-out infinite;
}

.animate-float-slow {
  animation: cyberFloatSlow 7s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

.animate-border-glow {
  animation: borderGlowLoop 8s ease-in-out infinite;
}

/* Shimmer on Headings */
.gradient-text {
  background: linear-gradient(90deg, #00f2fe 0%, #3b82f6 25%, #a855f7 50%, #00f2fe 75%, #3b82f6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 8s linear infinite;
}

.section-title {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
}

/* 4. Glowing Interactive Cards & 3D Tilt */
.skill-card,
.project-card,
.pillar-card,
.uses-card,
.now-card,
.lab-card,
.gallery-card,
.blog-card,
.research-card,
.case-study-article,
.pricing-card,
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  will-change: transform;
}

.skill-card::before,
.project-card::before,
.pillar-card::before,
.uses-card::before,
.now-card::before,
.lab-card::before,
.gallery-card::before,
.blog-card::before,
.research-card::before,
.case-study-article::before,
.pricing-card::before,
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 242, 254, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.skill-card:hover::before,
.project-card:hover::before,
.pillar-card:hover::before,
.uses-card:hover::before,
.now-card:hover::before,
.lab-card:hover::before,
.gallery-card:hover::before,
.blog-card:hover::before,
.research-card:hover::before,
.case-study-article:hover::before,
.pricing-card:hover::before,
.stat-card:hover::before {
  opacity: 1;
}

.skill-card:hover,
.project-card:hover,
.pillar-card:hover,
.uses-card:hover,
.now-card:hover,
.lab-card:hover,
.gallery-card:hover,
.blog-card:hover,
.research-card:hover,
.pricing-card:hover,
.stat-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.22);
  border-color: var(--border-active);
}

/* 5. Pulsing Status Indicator Dots */
.status-indicator-dot,
.badge-tag i.fa-circle,
.status-pill i.fa-circle {
  position: relative;
  display: inline-block;
}

.badge-tag.emerald i.fa-circle,
.status-pill.available i.fa-circle {
  color: var(--accent-emerald);
  animation: badgeGlowPulse 2s infinite;
}

/* 6. Terminal CRT Scanline Overlay */
.terminal-window {
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.15);
}

.terminal-window::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.45;
}

/* 7. Scroll Reveal System */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* 8. Circular Scroll-To-Top Progress Ring */
.scroll-progress-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.scroll-progress-widget.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-progress-widget:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.35);
}

.scroll-progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-progress-circle {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 3.5;
  stroke-dasharray: 144;
  stroke-dashoffset: 144;
  transition: stroke-dashoffset 0.1s linear;
}

.scroll-progress-icon {
  font-size: 1rem;
  color: var(--text-primary);
  transition: transform 0.25s ease;
  z-index: 2;
}

.scroll-progress-widget:hover .scroll-progress-icon {
  transform: translateY(-2px);
  color: var(--accent-cyan);
}

/* 9. Interactive Click Sparks Container */
.click-spark-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 99999;
  transform: translate(-50%, -50%);
  animation: sparkFade 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sparkFade {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}

/* 10. Glowing Button Hover Sweep */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: rotate(25deg) translateY(-100%);
  pointer-events: none;
  transition: transform 0.75s ease;
}

.btn-primary:hover::after {
  transform: rotate(25deg) translateY(100%);
}


/* ==========================================================================
   HYPER-ANIMATION & CYBER-PHYSICS ENGINE (V2.0 EXTENSION)
   ========================================================================== */

/* Top Viewport Neon Progress Bar */
#page-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #00f2fe, #3b82f6, #6366f1, #10b981, #00f2fe);
  background-size: 300% 100%;
  animation: textShimmer 4s linear infinite;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.8), 0 0 24px rgba(99, 102, 241, 0.5);
  z-index: 999999;
  pointer-events: none;
  transition: width 0.08s ease-out;
}

/* Custom Cyber Cursor (Desktop Only) */
@media (hover: hover) and (pointer: fine) {
  .cyber-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #00f2fe;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00f2fe, 0 0 20px #00f2fe;
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  }

  .cyber-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 242, 254, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999998;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
  }

  .cyber-cursor-ring.active-hover {
    width: 60px;
    height: 60px;
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.08);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4), inset 0 0 15px rgba(0, 242, 254, 0.15);
  }

  .cyber-cursor-ring.active-click {
    width: 24px;
    height: 24px;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2);
  }
}

/* Ambient Morphing Aurora Blobs Layer */
.ambient-aurora-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-blob {
  position: absolute;
  filter: blur(90px);
  opacity: 0.35;
  border-radius: 50%;
  animation: morphAndDrift 20s ease-in-out infinite alternate;
  will-change: transform, border-radius;
}

.aurora-blob-1 {
  top: 10%;
  left: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.45) 0%, rgba(59, 130, 246, 0.2) 60%, transparent 80%);
  animation-duration: 22s;
}

.aurora-blob-2 {
  top: 60%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(168, 85, 247, 0.2) 60%, transparent 80%);
  animation-duration: 26s;
  animation-delay: -5s;
}

.aurora-blob-3 {
  bottom: 10%;
  left: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(6, 182, 212, 0.15) 60%, transparent 80%);
  animation-duration: 28s;
  animation-delay: -10s;
}

@keyframes morphAndDrift {
  0% {
    transform: translate(0px, 0px) scale(1) rotate(0deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  33% {
    transform: translate(60px, -40px) scale(1.15) rotate(45deg);
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
  }
  66% {
    transform: translate(-40px, 50px) scale(0.9) rotate(90deg);
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
  }
  100% {
    transform: translate(30px, -20px) scale(1.05) rotate(135deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

/* Conic Rotating Neon Border for High-Impact Cards */
.conic-glow-border {
  position: relative;
  z-index: 1;
}

.conic-glow-border::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(from 0deg, #00f2fe, #3b82f6, #6366f1, #10b981, #00f2fe);
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  animation: spinConic 6s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.conic-glow-border:hover::after {
  opacity: 0.85;
}

@keyframes spinConic {
  0% {
    filter: hue-rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Equalizer Telemetry Visualizer */
.telemetry-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  margin-left: 8px;
  vertical-align: middle;
}

.telemetry-eq span {
  display: block;
  width: 3px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}

.telemetry-eq span:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.telemetry-eq span:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.telemetry-eq span:nth-child(3) { height: 40%; animation-delay: 0.2s; }
.telemetry-eq span:nth-child(4) { height: 80%; animation-delay: 0.4s; }

@keyframes eqBounce {
  0% { height: 20%; }
  50% { height: 100%; }
  100% { height: 35%; }
}

/* Cyber Click Ripple Waves */
.click-ripple {
  position: fixed;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  animation: rippleSpread 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rippleSpread {
  0% {
    width: 0px;
    height: 0px;
    opacity: 1;
    box-shadow: 0 0 15px var(--accent-cyan);
  }
  100% {
    width: 140px;
    height: 140px;
    opacity: 0;
    box-shadow: 0 0 35px var(--accent-cyan);
  }
}

/* Glitch Shake on Severe Interactions */
@keyframes cyberGlitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); filter: drop-shadow(2px 0 0 red); }
  40% { transform: translate(-3px, -3px); filter: drop-shadow(-2px 0 0 cyan); }
  60% { transform: translate(3px, 3px); filter: drop-shadow(2px 0 0 lime); }
  80% { transform: translate(3px, -3px); filter: drop-shadow(-2px 0 0 blue); }
  100% { transform: translate(0); }
}

.glitch-hover:hover {
  animation: cyberGlitch 0.25s ease-in-out;
}


/* ==========================================================================
   ULTRA-ANIMATION & CINEMATIC GLOBAL MOTION SYSTEM
   Powered by GSAP 3, ScrollTrigger & Hardware-Accelerated CSS
   ========================================================================== */

/* 1. CINEMATIC PAGE PRELOADER */
#preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #050811;
  z-index: 99999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: all;
}

#preloader-overlay.preloader-hidden {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.preloader-monogram {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #00f2fe, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.preloader-bar-track {
  width: 240px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin: 0 auto 0.75rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f2fe, #3b82f6, #6366f1);
  border-radius: 999px;
  box-shadow: 0 0 12px #00f2fe;
  transition: width 0.1s linear;
}

.preloader-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

/* 2. ADVANCED CUSTOM CURSOR WITH DYNAMIC LABELS */
@media (hover: hover) and (pointer: fine) {
  .cyber-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #00f2fe;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px #00f2fe, 0 0 16px #00f2fe;
    transition: transform 0.05s ease-out, opacity 0.2s ease, width 0.2s ease, height 0.2s ease;
  }

  .cyber-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(0, 242, 254, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999998;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease, border-radius 0.25s ease;
    backdrop-filter: blur(2px);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  }

  .cyber-cursor-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    text-transform: uppercase;
  }

  .cyber-cursor-ring.has-label {
    width: 64px;
    height: 64px;
    background: rgba(0, 242, 254, 0.2);
    border-color: #00f2fe;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5), inset 0 0 15px rgba(0, 242, 254, 0.2);
  }

  .cyber-cursor-ring.has-label .cyber-cursor-label {
    opacity: 1;
    transform: scale(1);
  }

  .cyber-cursor-ring.cursor-hover-btn {
    width: 48px;
    height: 48px;
    background: rgba(0, 242, 254, 0.12);
    border-color: #00f2fe;
  }

  .cyber-cursor-ring.cursor-click {
    width: 22px;
    height: 22px;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.3);
  }
}

/* 3. MASKED TYPOGRAPHY & WORD REVEAL */
.split-word-mask {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}

.split-word-inner {
  display: inline-block;
  opacity: 1;
  transform: none;
}

.split-word-mask.is-revealed .split-word-inner {
  display: inline-block;
  opacity: 1;
  transform: none;
}

/* 4. INFINITE ENGINEERING MARQUEE */
.marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 1.25rem 0;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  white-space: nowrap;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-surface-elevated), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-surface-elevated), transparent);
}

.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marqueeScroll 25s linear infinite;
  will-change: transform;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.marquee-item i {
  color: var(--accent-cyan);
}

.marquee-separator {
  color: var(--accent-indigo);
  font-size: 0.75rem;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 5. INTERACTIVE 3D TECH STACK ORBIT */
.tech-orbit-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.tech-orbit-viewport {
  position: relative;
  width: 100%;
  max-width: 650px;
  height: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-orbit-core {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #0d1629 0%, #060a14 100%);
  border: 2px solid var(--accent-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.4), inset 0 0 20px rgba(0, 242, 254, 0.2);
  z-index: 5;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.tech-orbit-core:hover {
  transform: scale(1.08);
  box-shadow: 0 0 60px rgba(0, 242, 254, 0.6), inset 0 0 30px rgba(0, 242, 254, 0.35);
}

.tech-orbit-core-icon {
  font-size: 2.2rem;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.tech-orbit-core-text {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.tech-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 242, 254, 0.25);
  pointer-events: none;
  animation: orbitSpin 35s linear infinite;
  will-change: transform;
}

.tech-orbit-ring-1 {
  width: 300px;
  height: 300px;
  animation-duration: 28s;
}

.tech-orbit-ring-2 {
  width: 480px;
  height: 480px;
  animation-duration: 42s;
  animation-direction: reverse;
  border-color: rgba(99, 102, 241, 0.22);
}

.tech-orbit-node {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.tech-orbit-node:hover {
  transform: scale(1.35) !important;
  border-color: var(--accent-cyan);
  background: #0f182e;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
  z-index: 10;
}

@keyframes orbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 6. HORIZONTAL PINNED SHOWCASE SECTION */
.horizontal-showcase-container {
  overflow: hidden;
  position: relative;
  background: #060913;
}

.horizontal-track {
  display: flex;
  flex-wrap: nowrap;
  width: 400%;
  will-change: transform;
}

.horizontal-panel {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
}

.horizontal-card-box {
  width: 100%;
  max-width: 1100px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 242, 254, 0.15);
  position: relative;
  overflow: hidden;
}

.horizontal-card-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
}

.horizontal-project-num {
  font-family: var(--font-mono);
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 1rem;
  right: 2rem;
  line-height: 1;
}

/* Fallback for Mobile (Vertical) */
@media (max-width: 1023px) {
  .horizontal-showcase-container {
    overflow: visible;
  }
  .horizontal-track {
    flex-direction: column;
    width: 100% !important;
    transform: none !important;
  }
  .horizontal-panel {
    width: 100%;
    min-height: auto;
    padding: 2rem 1rem;
  }
  .horizontal-card-box {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
}

/* 7. INTERACTIVE GITHUB CONTRIBUTION GRAPH */
.github-matrix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.github-matrix-grid {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  gap: 3.5px;
  padding: 1.25rem 0;
  overflow-x: auto;
}

.github-matrix-col {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  gap: 3.5px;
}

.github-matrix-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #141c2e;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.github-matrix-cell:hover {
  transform: scale(1.6);
  z-index: 10;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.github-matrix-cell.level-1 { background: #0e4429; }
.github-matrix-cell.level-2 { background: #006d32; }
.github-matrix-cell.level-3 { background: #26a641; }
.github-matrix-cell.level-4 { background: #39d353; box-shadow: 0 0 8px rgba(57, 211, 83, 0.4); }

.github-live-tooltip {
  position: fixed;
  background: #050914;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #ffffff;
  pointer-events: none;
  z-index: 999999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.github-live-tooltip.visible {
  opacity: 1;
}

/* 8. INTERACTIVE CLI TERMINAL HUD & EASTER EGGS */
.interactive-terminal-container {
  background: #060913;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.2);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header-bar {
  background: #0c1221;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-window-dots {
  display: flex;
  gap: 6px;
}

.terminal-window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-window-dot.red { background: #ef4444; }
.terminal-window-dot.yellow { background: #f59e0b; }
.terminal-window-dot.green { background: #10b981; }

.terminal-body-output {
  padding: 1.5rem;
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.7;
}

.terminal-prompt-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #080d1a;
  border-top: 1px solid var(--border-subtle);
}

.terminal-prompt-sym {
  color: var(--accent-emerald);
  font-weight: 700;
}

.terminal-cli-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #00f2fe;
}

/* 9. FLOATING HOVER IMAGE PREVIEWS */
.floating-link-preview-box {
  position: fixed;
  width: 240px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.3);
  pointer-events: none;
  z-index: 999999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.floating-link-preview-box.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.floating-link-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 10. PREFERS-REDUCED-MOTION ACCESSIBILITY SYSTEM */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #preloader-overlay {
    display: none !important;
  }
  .cyber-cursor-dot,
  .cyber-cursor-ring,
  .ambient-aurora-layer,
  #cyber-canvas {
    display: none !important;
  }
  .split-word-inner {
  display: inline-block;
  opacity: 1;
  transform: none;
}
  .reveal-on-scroll {
  opacity: 1;
  transform: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
  .marquee-track {
    animation: none !important;
  }
  .tech-orbit-ring {
    animation: none !important;
  }
}
