/* ==========================================================================
   MODERN DESIGN SYSTEM - MANOJ AGRAWAL TECHNICAL ARCHITECT & AI PORTFOLIO
   ========================================================================== */

:root {
  /* Dark Theme (Default) */
  --bg-body: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-elevated: #151d30;
  --bg-surface-hover: #1c263e;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-border-hover: rgba(56, 189, 248, 0.4);
  --bg-glass: rgba(14, 19, 31, 0.85);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #ffffff;

  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-teal: #14b8a6;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-accent: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 70%);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);

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

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --header-height: 72px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-border: rgba(15, 23, 42, 0.08);
  --bg-card-border-hover: rgba(2, 132, 199, 0.45);
  --bg-glass: rgba(255, 255, 255, 0.88);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-highlight: #020617;

  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-purple: #9333ea;
  --accent-teal: #0d9488;
  --accent-amber: #d97706;
  --accent-emerald: #059669;

  --gradient-primary: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
  --gradient-accent: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(79, 70, 229, 0.08) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.12), transparent 70%);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.15);
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-image: 
    radial-gradient(ellipse at 15% 10%, rgba(56, 189, 248, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 60%, rgba(99, 102, 241, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Common */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  border: 1px solid var(--bg-card-border-hover);
  color: var(--accent-cyan);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-highlight);
  line-height: 1.2;
  margin-bottom: 16px;
}

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

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-card-border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(56, 189, 248, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-highlight);
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: var(--shadow-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand-role {
  font-size: 0.725rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-highlight);
  background: var(--bg-surface-elevated);
}

.nav-link.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  font-size: 1.125rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-surface-hover);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}

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

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

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

.btn-outline:hover {
  border-color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.hero-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-highlight);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-headline {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

.hero-ai-focus {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.65;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border-left: 4px solid var(--accent-cyan);
  margin-bottom: 32px;
}

.hero-ai-focus strong {
  color: var(--accent-cyan);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-card-border);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
}

.hero-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hero-meta-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-highlight);
}

/* Hero Profile Card Right */
.hero-card-wrapper {
  position: relative;
}

.hero-profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.profile-avatar-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 6px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-surface-elevated);
}

.profile-cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 20px;
  text-align: left;
}

.cert-badge-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.cert-badge-info h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-highlight);
  line-height: 1.25;
}

.cert-badge-info span {
  font-size: 0.75rem;
  color: var(--accent-amber);
  font-weight: 600;
}

/* ==========================================================================
   PROFESSIONAL SUMMARY
   ========================================================================== */

.summary-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: var(--gradient-primary);
}

.summary-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.summary-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.summary-text p:last-child {
  margin-bottom: 0;
}

.summary-text strong {
  color: var(--text-highlight);
}

.summary-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
}

.highlight-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.highlight-icon {
  font-size: 1.75rem;
  color: var(--accent-cyan);
}

.highlight-data h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-highlight);
  line-height: 1.1;
}

.highlight-data p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   AI & GENERATIVE AI SECTION
   ========================================================================== */

.ai-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.ai-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.ai-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  border: 1px solid var(--bg-card-border-hover);
  color: var(--accent-cyan);
  font-size: 1.25rem;
}

.ai-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-highlight);
}

.ai-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.ai-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  font-size: 0.775rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.tech-chip.featured {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   AI ARCHITECTURE DIAGRAM SECTION
   ========================================================================== */

.ai-diagram-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.diagram-header-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-card-border);
  flex-wrap: wrap;
  gap: 12px;
}

.diagram-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-highlight);
  display: flex;
  align-items: center;
  gap: 10px;
}

.diagram-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.flow { background: var(--accent-cyan); }
.legend-dot.tool { background: var(--accent-amber); }
.legend-dot.human { background: var(--accent-purple); }

/* Pipeline Flow */
.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  align-items: center;
  position: relative;
  margin-bottom: 36px;
}

.pipeline-node {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.pipeline-node:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.pipeline-node-icon {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.pipeline-node-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-highlight);
  line-height: 1.25;
  margin-bottom: 4px;
}

.pipeline-node-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.pipeline-node.accent {
  background: var(--gradient-accent);
  border-color: rgba(56, 189, 248, 0.35);
}

/* Supplementary Branch Blocks */
.diagram-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding-top: 24px;
  border-top: 1px dashed var(--bg-card-border);
}

.branch-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.branch-icon {
  font-size: 1.25rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--accent-amber);
}

.branch-icon.human {
  color: var(--accent-purple);
}

.branch-icon.integration {
  color: var(--accent-teal);
}

.branch-content h5 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 4px;
}

.branch-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   ARCHITECTURE EXPERTISE
   ========================================================================== */

.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.arch-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.arch-card:hover {
  transform: translateY(-3px);
  border-color: var(--bg-card-border-hover);
  box-shadow: var(--shadow-md);
}

.arch-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gradient-accent);
  color: var(--accent-cyan);
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.arch-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 8px;
}

.arch-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   TECHNOLOGY STACK VISUALIZATION
   ========================================================================== */

.tech-stack-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stack-layer {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 24px;
  transition: var(--transition);
}

.stack-layer:hover {
  border-color: var(--bg-card-border-hover);
  box-shadow: var(--shadow-md);
}

.layer-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.layer-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.layer-icon.ai { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }
.layer-icon.backend { background: rgba(99, 102, 241, 0.15); color: var(--accent-indigo); }
.layer-icon.frontend { background: rgba(20, 184, 166, 0.15); color: var(--accent-teal); }
.layer-icon.data { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.layer-icon.cloud { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }

.layer-text h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-highlight);
  line-height: 1.2;
}

.layer-text span {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.stack-badge:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* ==========================================================================
   SKILLS SECTION (CATEGORIZED TILES - NO PERCENTAGES)
   ========================================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.skill-category-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.skill-category-card:hover {
  border-color: var(--bg-card-border-hover);
  box-shadow: var(--shadow-md);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bg-card-border);
}

.category-icon {
  font-size: 1.25rem;
  color: var(--accent-cyan);
}

.category-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-highlight);
}

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

.skill-chip {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.skill-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* ==========================================================================
   EXPERIENCE SECTION (TIMELINE)
   ========================================================================== */

.timeline-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 48px;
}

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

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 2;
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--bg-card-border-hover);
  box-shadow: var(--shadow-lg);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-role {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-highlight);
  line-height: 1.25;
}

.timeline-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.timeline-company {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-company i {
  color: var(--accent-indigo);
}

.timeline-points {
  margin-bottom: 20px;
}

.timeline-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.timeline-points li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.timeline-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--bg-card-border);
}

/* ==========================================================================
   FEATURED PROJECTS
   ========================================================================== */

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

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.project-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-type-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
}

.project-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-highlight);
  margin-bottom: 8px;
  line-height: 1.25;
}

.project-subtitle {
  font-size: 0.9375rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 16px;
}

.project-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-highlights {
  margin-bottom: 24px;
}

.project-highlights li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-emerald);
  font-weight: bold;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--bg-card-border);
}

/* ==========================================================================
   CERTIFICATIONS
   ========================================================================== */

.cert-card-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.cert-showcase-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 32px;
  transition: var(--transition);
}

.cert-showcase-card:hover {
  border-color: var(--bg-card-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cert-img-lg {
  width: 110px;
  height: 110px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.cert-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 6px;
  line-height: 1.25;
}

.cert-issuer {
  font-size: 0.875rem;
  color: var(--accent-amber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.cert-info p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-left h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-highlight);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.contact-left p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.contact-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-accent);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-details a,
.contact-details span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-highlight);
}

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

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

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-card-border);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

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

/* Back to top floating button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 320px;
    gap: 36px;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .stack-layer {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .summary-content {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 868px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--bg-card-border);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badge-row,
  .hero-actions,
  .hero-meta-row {
    justify-content: center;
  }

  .hero-card-wrapper {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .profile-avatar-container {
    width: 180px;
    height: 180px;
  }

  .timeline-container::before {
    left: 16px;
  }

  .timeline-item {
    padding-left: 48px;
  }

  .timeline-marker {
    left: 5px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .cert-showcase-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .contact-card {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .summary-card {
    padding: 24px 16px;
  }
  .pipeline-flow {
    grid-template-columns: 1fr;
  }
}
