/* ============================================
   DINUDSI PORTFOLIO — STYLES
   ============================================ */

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

/* --- Accessibility / SEO / GEO Utilities --- */

/* Visually hidden but accessible to screen readers and AI crawlers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to main content link (accessibility) */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-1);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-to-content:focus {
  top: 12px;
}

/* Section subtitle for GEO descriptive paragraphs */
.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 12px auto 0;
  line-height: 1.7;
}

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f2a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #e8e8f0;
  --text-secondary: #9494b8;
  --text-muted: #6b6b8a;
  --accent-1: #6c5ce7;
  --accent-2: #a855f7;
  --accent-3: #06b6d4;
  --accent-4: #f472b6;
  --gradient-1: linear-gradient(135deg, #6c5ce7, #a855f7, #06b6d4);
  --gradient-2: linear-gradient(135deg, #a855f7, #f472b6);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: rgba(108, 92, 231, 0.3);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Animated Background --- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.gradient-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-1);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-3);
  bottom: -150px;
  left: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 30px) scale(0.95); }
  75% { transform: translate(40px, 40px) scale(1.05); }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  backdrop-filter: blur(0px);
}

.nav.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: var(--transition);
}

.nav-logo:hover {
  color: var(--accent-2);
}

.logo-bracket {
  color: var(--accent-1);
}

.nav-links {
  display: flex;
  gap: 8px;
}

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

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent-2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Gradient Text --- */
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  z-index: 1;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-2);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-greeting {
  display: block;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.hero-name {
  display: block;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-roles {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-3);
  margin-bottom: 20px;
  min-height: 1.6em;
}

.cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent-2);
}

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

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-tagline strong {
  color: var(--text-primary);
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  padding: 20px 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-2);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* --- Hero CTA --- */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Code Window --- */
.hero-visual {
  flex: 1;
  max-width: 480px;
}

.code-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 15, 40, 0.8);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  animation: floatCode 6s ease-in-out infinite;
}

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

.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

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

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-body code {
  font-family: inherit;
}

.code-keyword { color: #c792ea; }
.code-var { color: #82aaff; }
.code-prop { color: #f07178; }
.code-string { color: #c3e88d; }
.code-method { color: #82aaff; }

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bobbing 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 13px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-2);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes bobbing {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-dark {
  background: rgba(15, 15, 42, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-lead {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.about-text p strong {
  color: var(--text-primary);
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
}

.value-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.value-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.value-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0 !important;
}

.info-card {
  padding: 32px;
  position: sticky;
  top: 100px;
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-list li div {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.info-list li div strong {
  color: var(--text-primary);
}

/* --- Tech Stack --- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stack-category {
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stack-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
  opacity: 0;
  transition: var(--transition);
}

.stack-category:hover::before {
  opacity: 1;
}

.stack-icon-wrap {
  margin-bottom: 12px;
}

.stack-emoji {
  font-size: 2rem;
}

.stack-category h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
}

.tag:hover {
  background: rgba(108, 92, 231, 0.15);
  color: var(--text-primary);
  border-color: rgba(108, 92, 231, 0.3);
}

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.accent-ai { background: linear-gradient(90deg, #6c5ce7, #a855f7); }
.accent-rag { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.accent-auth { background: linear-gradient(90deg, #f59e0b, #f97316); }
.accent-workflow { background: linear-gradient(90deg, #22c55e, #10b981); }
.accent-fintech { background: linear-gradient(90deg, #f472b6, #ec4899); }
.accent-oss { background: linear-gradient(90deg, #8b5cf6, #6366f1); }

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

.project-icon {
  font-size: 1.8rem;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-link {
  color: var(--text-muted);
  transition: var(--transition);
}

.project-link:hover {
  color: var(--text-primary);
}

.project-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 100px;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* --- Highlights --- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.highlight-card {
  padding: 28px;
  text-align: center;
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.highlight-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.highlight-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Philosophy --- */
.philosophy {
  max-width: 800px;
  margin: 0 auto;
}

.philosophy-inner {
  padding: 48px;
  text-align: center;
  position: relative;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  top: 16px;
  left: 32px;
  opacity: 0.3;
}

blockquote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.philosophy-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
}

.principle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(108, 92, 231, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.principle:hover {
  background: rgba(108, 92, 231, 0.12);
  color: var(--text-primary);
}

.principle-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* --- Contact --- */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  text-align: left;
  cursor: pointer;
}

.contact-card:hover {
  transform: translateX(6px);
}

.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-card div {
  flex: 1;
}

.contact-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-card svg:last-child {
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.contact-card:hover svg:last-child {
  color: var(--accent-2);
  transform: translate(3px, -3px);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

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

/* --- Fade-in Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Stagger delays for hero --- */
.hero .fade-in:nth-child(1) { transition-delay: 0.1s; }
.hero .fade-in:nth-child(2) { transition-delay: 0.2s; }
.hero .fade-in:nth-child(3) { transition-delay: 0.3s; }
.hero .fade-in:nth-child(4) { transition-delay: 0.4s; }
.hero .fade-in:nth-child(5) { transition-delay: 0.5s; }
.hero .fade-in:nth-child(6) { transition-delay: 0.6s; }

.hero-content .fade-in:nth-child(1) { transition-delay: 0.2s; }
.hero-content .fade-in:nth-child(2) { transition-delay: 0.35s; }
.hero-content .fade-in:nth-child(3) { transition-delay: 0.5s; }
.hero-content .fade-in:nth-child(4) { transition-delay: 0.65s; }
.hero-content .fade-in:nth-child(5) { transition-delay: 0.8s; }
.hero-content .fade-in:nth-child(6) { transition-delay: 0.95s; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-top: 120px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    max-width: 400px;
  }

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

  .info-card {
    position: static;
  }

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

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-name {
    font-size: clamp(2.2rem, 8vw, 3.5rem) !important;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section {
    padding: 60px 0;
  }

  .stack-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stack-category {
    padding: 20px;
  }

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

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

  .philosophy-inner {
    padding: 32px 24px;
  }

  .philosophy-principles {
    grid-template-columns: 1fr;
  }

  blockquote {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 40px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .hero-visual {
    max-width: 100%;
  }

  .code-body {
    font-size: 0.72rem;
    padding: 16px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.88rem;
  }

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