/* ============================================
   Gautam Yadav Portfolio — Main Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #0a0f1a;
  --color-bg-secondary: #111827;
  --color-surface: rgba(17, 24, 39, 0.6);
  --color-surface-hover: rgba(26, 35, 50, 0.8);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(51, 161, 255, 0.3);
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-heading: #f8fafc;
  --color-brand: #33a1ff;
  --color-brand-light: #59c0ff;
  --color-brand-dark: #1a82f5;
  --color-accent: #8b5cf6;
  --color-success: #10b981;
  --gradient-brand: linear-gradient(135deg, #33a1ff 0%, #8b5cf6 100%);
  --gradient-surface: linear-gradient(135deg, rgba(51, 161, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(51, 161, 255, 0.15);
  --glass-bg: rgba(17, 24, 39, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 16px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --header-height: 72px;
  --container-max: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme */
[data-theme="light"] {
  --color-bg: #f8fafc;
  --color-bg-secondary: #f1f5f9;
  --color-surface: rgba(255, 255, 255, 0.7);
  --color-surface-hover: rgba(255, 255, 255, 0.9);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(51, 161, 255, 0.4);
  --color-text: #334155;
  --color-text-muted: #64748b;
  --color-text-dim: #94a3b8;
  --color-heading: #0f172a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(51, 161, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(0, 0, 0, 0.08);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-brand-light);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 1.2;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--color-brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
  background: rgba(51, 161, 255, 0.1);
  border: 1px solid rgba(51, 161, 255, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Background Effects --- */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.bg-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(51, 161, 255, 0.3), transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.bg-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
  bottom: 20%;
  left: -150px;
  animation: float 10s ease-in-out infinite reverse;
}

.bg-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  top: 50%;
  right: 10%;
  animation: float 12s ease-in-out infinite;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.glass-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-glow);
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 15, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.85);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  flex-shrink: 0;
}

.logo-bracket {
  color: var(--color-brand);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-heading);
  background: rgba(51, 161, 255, 0.1);
}

.nav-cta {
  background: var(--gradient-brand) !important;
  color: #fff !important;
  padding: 8px 20px !important;
}

.nav-cta:hover {
  opacity: 0.9;
  color: #fff !important;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-brand);
  border-color: var(--color-border-hover);
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(51, 161, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(51, 161, 255, 0.4);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-heading);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: rgba(51, 161, 255, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 12px 20px;
}

.btn-ghost:hover {
  color: var(--color-heading);
  border-color: var(--color-border-hover);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-success);
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.role-sep {
  color: var(--color-brand);
  margin: 0 8px;
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-dim);
}

.hero-meta-item a {
  color: var(--color-text-dim);
}

.hero-meta-item a:hover {
  color: var(--color-brand);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.hero-terminal {
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .terminal-header {
  background: rgba(0, 0, 0, 0.05);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--color-text-muted);
}

.code-keyword { color: #c678dd; }
.code-class { color: #e5c07b; }
.code-type { color: #56b6c2; }
.code-string { color: #98c379; }
.code-fn { color: #61afef; }

[data-theme="light"] .code-keyword { color: #a626a4; }
[data-theme="light"] .code-class { color: #c18401; }
[data-theme="light"] .code-type { color: #0184bc; }
[data-theme="light"] .code-string { color: #50a14f; }
[data-theme="light"] .code-fn { color: #4078f2; }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-brand), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.about-card {
  padding: 32px;
}

.about-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(51, 161, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-brand);
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.about-summary {
  padding: 40px;
}

.about-summary h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.about-summary p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-brand), var(--color-accent), var(--color-border));
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 40px;
}

.timeline-marker {
  position: absolute;
  left: 12px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 3px solid var(--color-brand);
  z-index: 1;
}

.timeline-marker.current {
  background: var(--color-brand);
  box-shadow: 0 0 16px rgba(51, 161, 255, 0.5);
}

.timeline-card {
  padding: 32px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.timeline-header h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.timeline-role {
  color: var(--color-brand);
  font-size: 0.9375rem;
  font-weight: 500;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-dim);
  background: rgba(51, 161, 255, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.timeline-responsibilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.timeline-responsibilities li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.timeline-responsibilities li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-brand);
  font-size: 0.75rem;
}

/* --- Skills --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category {
  padding: 28px;
}

.skill-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--color-heading);
}

.skill-category-title svg {
  color: var(--color-brand);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

[data-theme="light"] .skill-bar {
  background: rgba(0, 0, 0, 0.06);
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-brand);
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(51, 161, 255, 0.1);
  border: 1px solid rgba(51, 161, 255, 0.2);
  border-radius: 100px;
  color: var(--color-brand);
  transition: all var(--transition);
}

.skill-tag:hover {
  background: rgba(51, 161, 255, 0.2);
  transform: translateY(-2px);
}

/* --- Leadership --- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.leadership-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.leadership-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(51, 161, 255, 0.08);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.leadership-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.leadership-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  position: relative;
  z-index: 1;
}

/* --- AWS --- */
.aws-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.aws-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.aws-service {
  padding: 28px;
}

.aws-service-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand);
  background: rgba(51, 161, 255, 0.1);
  border: 1px solid rgba(51, 161, 255, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 16px;
}

.aws-service h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.aws-service p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.aws-cert {
  padding: 36px;
  text-align: center;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.cert-badge {
  color: var(--color-brand);
  margin-bottom: 20px;
}

.aws-cert h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.aws-cert p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* --- Projects --- */
.project-case,
.project-showcase {
  padding: 40px;
  margin-bottom: 32px;
}

.project-case-header,
.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-brand);
  display: block;
  margin-bottom: 4px;
}

.project-title {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.project-url {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.showcase-tagline {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  background: rgba(51, 161, 255, 0.08);
  border: 1px solid rgba(51, 161, 255, 0.15);
  border-radius: 100px;
  color: var(--color-brand);
  transition: all var(--transition);
}

.tech-pill:hover {
  background: rgba(51, 161, 255, 0.15);
  transform: translateY(-1px);
}

.project-description {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.project-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.project-detail-block h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  margin-bottom: 12px;
}

.project-detail-block ul li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.project-detail-block ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-brand);
}

.showcase-section {
  margin-bottom: 32px;
}

.showcase-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  margin-bottom: 16px;
}

.data-sources,
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.data-source-pill,
.feature-chip {
  font-size: 0.85rem;
  padding: 8px 18px;
  background: var(--gradient-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: all var(--transition);
}

.data-source-pill:hover,
.feature-chip:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

/* Architecture Diagram */
.architecture-diagram {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

[data-theme="light"] .architecture-diagram {
  background: rgba(0, 0, 0, 0.03);
}

.arch-layer {
  text-align: center;
}

.arch-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  margin-bottom: 10px;
}

.arch-nodes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.arch-node {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 10px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: all var(--transition);
}

.arch-node.highlight {
  border-color: rgba(51, 161, 255, 0.4);
  background: rgba(51, 161, 255, 0.1);
  color: var(--color-brand-light);
}

.arch-node:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.arch-connector {
  text-align: center;
  color: var(--color-brand);
  font-size: 1.2rem;
  opacity: 0.5;
}

/* Workflow Diagram */
.workflow-diagram {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow-x: auto;
}

[data-theme="light"] .workflow-diagram {
  background: rgba(0, 0, 0, 0.03);
}

.workflow-step {
  text-align: center;
  min-width: 120px;
  flex-shrink: 0;
}

.workflow-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.workflow-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.workflow-step p {
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

.workflow-arrow {
  color: var(--color-brand);
  font-size: 1.5rem;
  padding-top: 20px;
  flex-shrink: 0;
}

.achievement-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}

.achievement-list li {
  position: relative;
  padding: 12px 16px 12px 32px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: rgba(51, 161, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.achievement-list li::before {
  content: '✓';
  position: absolute;
  left: 12px;
  color: var(--color-success);
  font-weight: 700;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.challenge-card {
  padding: 24px;
  background: rgba(51, 161, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.challenge-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.challenge-card h5 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-heading);
}

.challenge-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Architecture Highlights --- */
.arch-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.arch-highlight {
  padding: 32px;
}

.arch-highlight h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.arch-highlight p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- Achievements --- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.achievement-stat {
  padding: 32px;
  text-align: center;
}

.achievement-stat-number,
.achievement-stat-text {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.achievement-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-top: 10px;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.achievement-item {
  display: flex;
  gap: 20px;
  padding: 28px 32px;
  align-items: flex-start;
}

.achievement-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.achievement-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.achievement-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- Certifications --- */
.cert-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.cert-card-icon {
  color: var(--color-brand);
  flex-shrink: 0;
}

.cert-card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cert-card-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.cert-card-content h3 a {
  color: var(--color-heading);
  transition: color var(--transition);
}

.cert-card-content h3 a:hover {
  color: var(--color-brand);
}

.aws-cert h3 a {
  color: var(--color-heading);
}

.aws-cert h3 a:hover {
  color: var(--color-brand);
}

.cert-card-badge {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(51, 161, 255, 0.15);
  flex-shrink: 0;
}

/* --- Education --- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.education-card {
  padding: 32px;
  text-align: center;
}

.education-degree {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.education-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.education-institution {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.education-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-brand);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.contact-panel h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0;
}

.contact-panel p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.contact-panel .btn {
  width: fit-content;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.cert-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
}

.section + .section {
  padding-top: 60px;
}


.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.contact-card svg {
  color: var(--color-brand);
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  margin-bottom: 4px;
}

.contact-card a,
.contact-card p {
  font-size: 1rem;
  color: var(--color-heading);
}

.contact-form {
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-heading);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  resize: vertical;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: rgba(0, 0, 0, 0.03);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-dim);
}

.form-note {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  text-align: center;
  margin-top: 12px;
}

/* --- Footer --- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--color-text-dim);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--color-text-dim);
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--color-brand);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-terminal {
    max-width: 600px;
  }

  .about-grid,
  .skills-grid,
  .arch-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aws-grid {
    grid-template-columns: 1fr;
  }

  .aws-cert {
    position: static;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .challenges-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform var(--transition);
    gap: 4px;
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu a {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .about-grid,
  .skills-grid,
  .leadership-grid,
  .arch-highlights-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .timeline-responsibilities {
    grid-template-columns: 1fr;
  }

  .aws-services {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 1 1 40%;
  }

  .cert-card {
    flex-direction: column;
    text-align: center;
  }

  .project-case-header {
    flex-direction: column;
  }

  .workflow-diagram {
    flex-direction: column;
    align-items: center;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    padding: 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .project-case,
  .project-showcase {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
