/* ============================================
   AGON MUSTAFAJ, Portfolio Stylesheet
   Premium dark-first design system
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111114;
  --bg-tertiary: #1a1a1f;
  --bg-elevated: #1e1e24;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-blue: #3b82f6;
  --accent-violet: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --glow-blue: rgba(59, 130, 246, 0.15);
  --glow-violet: rgba(139, 92, 246, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', 'Cascadia Code', Consolas, 'Courier New', monospace;
  --nav-height: 72px;
  --nav-height-scrolled: 60px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
  --container-wide: 1400px;
}

[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #f4f4f5;
  --bg-tertiary: #e4e4e7;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(0, 0, 0, 0.02);
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --glow-blue: rgba(59, 130, 246, 0.1);
  --glow-violet: rgba(139, 92, 246, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.custom-cursor { cursor: none; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

::selection {
  background: var(--accent-blue);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

@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;
  }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

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

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: var(--container-wide);
}

.section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header .label { margin-bottom: 0.75rem; display: block; }

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  transition: width 0.3s, height 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--accent-violet);
  box-shadow: 0 0 20px var(--glow-violet);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: height var(--transition), background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(250, 250, 250, 0.85);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

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

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.theme-toggle svg { width: 20px; height: 20px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  border-top: 1px solid var(--border-color);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px var(--glow-blue);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px var(--glow-violet);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-color);
  background: var(--bg-glass);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, var(--glow-blue) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 600px; }

.hero-name {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-identity {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 2rem;
}

.hero-statement {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* --- Digital Wallet Card --- */
.wallet-container {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wallet-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1.6 / 1;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow var(--transition);
  box-shadow: var(--shadow-lg);
}

.wallet-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.12) 0%, transparent 60%);
  pointer-events: none;
  transition: opacity var(--transition);
  opacity: 0;
}

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

.wallet-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.wallet-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.page-header-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.page-header-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: block;
  overflow: hidden;
}

.info-card-photo {
  margin-bottom: 1.25rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.info-card-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.wallet-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  overflow: hidden;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.wallet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}

.wallet-qr {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 4px;
}

.wallet-qr img { width: 100%; height: 100%; }

.wallet-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.wallet-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.wallet-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.wallet-socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.wallet-socials a:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: var(--glow-blue);
}

.wallet-socials svg { width: 16px; height: 16px; }

.wallet-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.wallet-actions .btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
}

.wallet-qr-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.wallet-qr-item {
  text-align: center;
}

.wallet-qr-item svg,
.wallet-qr-item img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: #fff;
  display: block;
}

.wallet-qr-fallback {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

.wallet-qr-item span {
  font-size: 0.6rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* --- Cards --- */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.card-tilt {
  transform-style: preserve-3d;
}

/* --- What I Do Cards --- */
.what-i-do-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.what-i-do-card {
  padding: 2rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: default;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.what-i-do-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.what-i-do-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  background: var(--bg-tertiary);
}

.what-i-do-card:hover::after { transform: scaleX(1); }

.what-i-do-card .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--glow-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-blue);
}

.what-i-do-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.what-i-do-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-violet));
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-blue);
  z-index: 1;
}

.timeline-item h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.timeline-item .subtitle { color: var(--text-secondary); font-size: 0.9rem; }
.timeline-item .status {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-violet);
  padding: 0.2rem 0.6rem;
  background: var(--glow-violet);
  border-radius: 100px;
}

/* --- Browser Mockup --- */
.browser-mockup {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.browser-mockup:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

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

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-primary);
}

.browser-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.browser-cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
}

.browser-mockup:hover .browser-cursor { opacity: 1; }

/* --- Project Showcase --- */
.project-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.project-showcase:last-child { border-bottom: none; }

.project-showcase.reverse { direction: rtl; }
.project-showcase.reverse > * { direction: ltr; }

.project-number {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --- Skills Ecosystem --- */
.skills-ecosystem {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.skill-node {
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: default;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative;
}

.skill-node:hover,
.skill-node.active {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
  background: var(--bg-tertiary);
  box-shadow: 0 4px 16px var(--glow-blue);
}

.skill-category-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.skill-detail-panel {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  min-height: 120px;
  transition: opacity var(--transition);
}

.skill-detail-panel .skill-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.skill-detail-panel .skill-cat {
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.skill-detail-panel .skill-desc {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.skill-detail-panel .skill-project {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.skill-detail-panel .skill-project a {
  color: var(--accent-violet);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.skills-categories { display: flex; flex-direction: column; gap: 2.5rem; }

/* --- SEO Flow --- */
.seo-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
}

.seo-flow-step {
  width: 100%;
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.seo-flow-step:hover,
.seo-flow-step.active {
  border-color: var(--accent-blue);
  background: var(--bg-tertiary);
  box-shadow: 0 4px 20px var(--glow-blue);
  transform: scale(1.02);
}

.seo-flow-step h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.seo-flow-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.seo-flow-step.active p,
.seo-flow-step:hover p {
  max-height: 100px;
  opacity: 1;
  margin-top: 0.5rem;
}

.seo-flow-arrow {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-violet));
  opacity: 0.4;
}

/* --- Dev Pipeline --- */
.dev-pipeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.pipeline-step {
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.pipeline-step:hover,
.pipeline-step.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--glow-blue);
}

.pipeline-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pipeline-description {
  margin-top: 2rem;
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  min-height: 60px;
  transition: opacity var(--transition);
}

/* --- Terminal --- */
.terminal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.terminal-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 200px;
  line-height: 1.8;
}

.terminal-line { color: var(--text-secondary); }
.terminal-prompt { color: var(--accent-blue); }
.terminal-output { color: var(--text-primary); }
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent-blue);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Certifications --- */
.cert-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cert-filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.cert-filter-btn:hover,
.cert-filter-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.cert-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.cert-preview {
  display: block;
  position: relative;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  background: #f5f5f5;
}

.cert-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--transition);
}

.cert-preview:hover img {
  transform: scale(1.03);
}

.cert-preview-inner {
  height: 100%;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.25), transparent 45%),
    linear-gradient(145deg, #1a1a22 0%, #121218 100%);
}

.cert-preview-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.cert-preview-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 90%;
}

.cert-preview-cta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cert-preview:hover .cert-preview-cta {
  color: #93c5fd;
}

.cert-platform-coursera {
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 86, 210, 0.35), transparent 45%),
    linear-gradient(145deg, #152238 0%, #10151f 100%);
}

.cert-platform-credly {
  background:
    radial-gradient(circle at 85% 25%, rgba(255, 107, 0, 0.28), transparent 40%),
    linear-gradient(145deg, #2a1a12 0%, #15110f 100%);
}

.cert-platform-credly .cert-preview-badge {
  color: #fdba74;
  background: rgba(255, 107, 0, 0.15);
  border-color: rgba(255, 107, 0, 0.35);
}

.cert-platform-kren {
  background:
    radial-gradient(circle at 50% 20%, rgba(34, 197, 94, 0.25), transparent 45%),
    linear-gradient(145deg, #122018 0%, #101412 100%);
}

.cert-platform-kren .cert-preview-badge {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
}

.cert-preview embed,
.cert-preview-fallback {
  display: none;
}

.cert-card-body {
  padding: 1.5rem;
}

.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.verification-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.verification-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.verification-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  width: 240px;
  max-width: 100%;
  margin: 0 auto;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: block;
}

.cv-sheet {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.cv-sheet-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
}

.cv-sheet-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.cv-sheet-role {
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.cv-sheet-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.cv-sheet-meta a {
  color: var(--accent-blue);
}

.cv-sheet-grid {
  display: grid;
  gap: 1.75rem;
}

.cv-sheet-grid h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.cv-sheet-grid p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.cv-entry {
  margin-bottom: 1rem;
}

.cv-entry h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cv-entry-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }

  .cv-sheet {
    padding: 1.5rem;
  }

  .cv-sheet-header {
    flex-direction: column;
    text-align: center;
  }
}

.cert-platform {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cert-platform-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--glow-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--accent-blue);
}

.cert-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.cert-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cert-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* --- Articles --- */
.article-card {
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition);
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.article-card .coming-soon-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: var(--glow-violet);
  color: var(--accent-violet);
  margin-bottom: 0.75rem;
}

.article-card h3 {
  margin: 0.5rem 0;
  font-size: 1.15rem;
}

.article-card h3 a {
  color: var(--text-primary);
  transition: color var(--transition);
}

.article-card h3 a:hover { color: var(--accent-blue); }

.article-card p { color: var(--text-secondary); font-size: 0.9rem; }

.blog-post {
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
}

.blog-meta {
  color: var(--text-muted);
  margin: 1rem 0 2rem;
  font-size: 0.95rem;
}

.blog-content {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1.05rem;
}

.blog-content h2 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin: 2rem 0 0.85rem;
}

.blog-content p {
  margin-bottom: 1.15rem;
}

.company-link {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(96, 165, 250, 0.5);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.company-link:hover {
  color: #93c5fd;
  text-decoration-color: #93c5fd;
}

.wallet-info a {
  color: #60a5fa;
}

.wallet-info a.company-link {
  color: #60a5fa;
  font-weight: 600;
}

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

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--glow-blue);
}

.form-group textarea { min-height: 150px; resize: vertical; }

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.form-error.visible { display: block; }

.form-success,
.form-demo {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  display: none;
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-demo {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-blue);
}

.form-success.visible,
.form-demo.visible { display: block; }

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-actions .btn { width: 100%; justify-content: center; }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.modal { position: relative; }

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  z-index: 3000;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* --- Social Links --- */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 16px var(--glow-blue);
}

.social-link.placeholder {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.social-link svg { width: 20px; height: 20px; }

/* --- Footer --- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 { margin-bottom: 0.5rem; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  padding: 0.35rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

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

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: color var(--transition), border-color var(--transition);
}

.footer-socials a:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.footer-socials svg { width: 16px; height: 16px; }

/* --- Page Header --- */
.page-header {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  text-align: center;
}

.page-header h1 { margin-bottom: 1rem; }
.page-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- Case Study --- */
.case-study-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.case-study-section:last-child { border-bottom: none; }

.case-study-section .label { margin-bottom: 0.75rem; display: block; }

.case-study-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 720px;
}

.case-study-hero {
  padding: calc(var(--nav-height) + 3rem) 0 3rem;
}

.case-study-hero .project-number {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.case-study-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-blue); }

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-list li {
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '→';
  color: var(--accent-blue);
  margin-right: 0.5rem;
}

/* --- CV Page --- */
.cv-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.cv-viewer {
  margin-top: 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 600px;
  background: var(--bg-secondary);
}

.cv-viewer iframe {
  width: 100%;
  height: 80vh;
  border: none;
}

.cv-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* --- 404 --- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Experience / Education Lists --- */
.info-card {
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

.info-card h3 { margin-bottom: 0.25rem; }

.info-card .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.info-card .current-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: var(--glow-blue);
  color: var(--accent-blue);
  margin-left: 0.5rem;
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card ul li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.info-card ul li:last-child { border-bottom: none; }

/* --- Grid Utilities --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* --- About Page --- */
.about-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 720px;
}

.about-intro p { margin-bottom: 1.5rem; }

/* --- Homepage Sections Spacing --- */
.home-section { padding: 5rem 0; }

.cert-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .hero-grid { gap: 3rem; }
  .project-showcase { gap: 2rem; }
}

@media (max-width: 1024px) {
  .hero-grid,
  .project-showcase,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .project-showcase.reverse { direction: ltr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cert-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links,
  .nav-actions .btn-secondary { display: none; }

  .nav-hamburger { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .home-section { padding: 3.5rem 0; }

  .wallet-card {
    max-width: 100%;
    aspect-ratio: auto;
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cert-featured-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .dev-pipeline {
    flex-direction: column;
  }

  .pipeline-arrow { transform: rotate(90deg); }

  .skills-ecosystem {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }

  .hero-name { font-size: 2.2rem; }

  .wallet-actions { flex-direction: column; }

  .cert-grid { grid-template-columns: 1fr; }

  .articles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .hero-identity { letter-spacing: 0.08em; font-size: 0.75rem; }
}

/* Hide custom cursor on touch / mobile */
@media (hover: none), (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body.custom-cursor { cursor: auto; }
}

/* Disable wallet 3D on mobile */
@media (max-width: 1024px) {
  .wallet-card {
    transform: none !important;
  }
  .wallet-card::before { display: none; }
}
