/* ==========================================================================
   ASHFAK SOURAV - MINIMAL PORTFOLIO STYLES
   Colors: White (#ffffff), Black (#0a0a0a), Scarlet Red (#dc2626)
   ========================================================================== */

:root {
  /* Color Palette — no gradients, only solids */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;

  /* Scarlet */
  --scarlet: #dc2626;
  --scarlet-light: rgba(220, 38, 38, 0.08);

  /* Neutrals */
  --black: #0a0a0a;
  --text-primary: #0a0a0a;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;

  /* Borders */
  --border: #e5e5e5;
  --border-hover: #d4d4d4;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Layout */
  --container-max: 1100px;
  --nav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Hide ambient effects from the dark theme */
.ambient-background,
.grid-overlay,
.cursor-spotlight {
  display: none;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--scarlet);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s ease-out;
}

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

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

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

/* Text helpers — override gradient classes to use solid colors */
.text-gradient,
.shimmer-text {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--black) !important;
  animation: none !important;
}

.text-scarlet-gradient {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--scarlet) !important;
}

.text-scarlet {
  color: var(--scarlet);
}

/* ==========================================================================
   BADGES & SECTION HEADERS
   ========================================================================== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--scarlet-light);
  border: 1px solid var(--scarlet);
  color: var(--scarlet);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--black);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================================================
   CARD
   ========================================================================== */
.linear-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.linear-card::before {
  display: none;
}

.linear-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION — Vertical, Snapped to Right Side (Desktop & Tablet)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  z-index: 1000;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.navbar.scrolled {
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  width: auto;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-link::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 2px;
  background: var(--border);
  transition: width var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--black);
  transform: translateX(-4px);
}

.nav-link:hover::after {
  width: 20px;
  background: var(--black);
}

.nav-link.active {
  color: var(--black);
  font-weight: 700;
}

.nav-link.active::after {
  width: 28px;
  background: var(--scarlet);
}

.nav-actions {
  display: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--scarlet);
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: #f5f5f5;
}

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

.btn-outline:hover {
  border-color: var(--scarlet);
  color: var(--scarlet);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.85rem;
}

.btn-glow:hover {
  filter: none;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  cursor: pointer;
  z-index: 1002;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--black);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border);
  padding: 90px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 999;
  transition: right var(--transition-normal);
}

.mobile-nav.open { right: 0; }

.mobile-nav-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-nav-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--scarlet);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding: 80px 0;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--scarlet-light);
  border: 1px solid var(--scarlet);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--scarlet);
  font-weight: 600;
  margin-bottom: 28px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--scarlet);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -3px; left: -3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--scarlet);
  animation: beacon-pulse 2s infinite ease-out;
}

/* Display Picture */
.dp-wrapper {
  margin-bottom: 28px;
}

.dp-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid var(--scarlet);
  padding: 4px;
  animation: dp-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dp-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.3s ease;
}

.dp-image:hover {
  filter: grayscale(0%);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--black);
}

.hero-subtitle-wrapper {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.typing-prefix {
  color: var(--black);
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.typing-text {
  color: var(--scarlet);
  font-weight: 700;
  border-right: 2px solid var(--scarlet);
  padding-right: 4px;
  white-space: nowrap;
  animation: blink-cursor 0.75s step-end infinite;
}

.hero-bio {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 56px;
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.social-pill:hover {
  color: var(--scarlet);
  border-color: var(--scarlet);
}

.social-pill svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 800px;
}

.stat-card {
  text-align: center;
  padding: 20px 12px;
}

.stat-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--scarlet);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2px;
}

.stat-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ABOUT / BENTO
   ========================================================================== */
.section-padding {
  padding: 80px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card-main { grid-column: span 7; }
.bento-card-code { grid-column: span 5; }
.bento-card-pillar { grid-column: span 4; }

.bento-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--scarlet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--scarlet);
  margin-bottom: 16px;
  border: none;
}

.bento-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

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

/* Code Card */
.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

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

.window-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #22c55e; }

.file-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.code-block {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: pre;
}

.token-keyword { color: var(--scarlet); font-weight: 600; }
.token-property { color: #2563eb; }
.token-string { color: #16a34a; }
.token-comment { color: var(--text-muted); font-style: italic; }
.token-function { color: #ca8a04; }

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.skill-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-tab-btn:hover {
  color: var(--black);
  border-color: var(--border-hover);
}

.skill-tab-btn.active {
  background: var(--scarlet);
  border-color: var(--scarlet);
  color: #ffffff;
}

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

.skill-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.skill-item-card:hover {
  border-color: var(--scarlet);
  transform: translateX(3px);
}

.skill-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
}

.skill-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.skill-item-card:hover .skill-badge {
  color: var(--scarlet);
  border-color: var(--scarlet);
  background: var(--scarlet-light);
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--black);
  border-color: var(--border-hover);
}

.filter-btn.active {
  background: var(--scarlet);
  border-color: var(--scarlet);
  color: #ffffff;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project-top { margin-bottom: 18px; }

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

.project-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--scarlet);
  background: var(--scarlet-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: none;
}

.project-links { display: flex; gap: 6px; }

.project-icon-link {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.project-icon-link:hover {
  color: var(--scarlet);
  border-color: var(--scarlet);
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--black);
}

.project-summary {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.project-tags-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.project-badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-code {
  background: var(--bg-secondary);
  color: var(--black);
  border: 1px solid var(--border);
}

.badge-showcase {
  background: #fef2f2;
  color: var(--scarlet);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.view-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--scarlet);
  transition: gap var(--transition-fast);
}

.view-details-btn:hover { gap: 9px; }

.card-store-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.card-store-link:hover {
  color: var(--black);
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 28px;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

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

.timeline-dot {
  position: absolute;
  top: 6px; left: -28px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--scarlet);
  z-index: 2;
}

.timeline-card { padding: 22px; }

.timeline-period {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--scarlet);
  margin-bottom: 6px;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--black);
}

.timeline-org {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-highlight-card {
  padding: 28px;
  border-left: 3px solid var(--scarlet);
}

.contact-highlight-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.contact-highlight-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.copy-email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.email-address-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--scarlet);
  background: var(--scarlet-light);
  padding: 5px 10px;
  border-radius: 6px;
  border: none;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--scarlet);
  color: #ffffff;
}

.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  min-width: 0;
  transition: all var(--transition-fast);
}

.social-card:last-child:nth-child(odd) {
  grid-column: span 2;
}

.social-card:hover {
  border-color: var(--scarlet);
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.08);
}

.social-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--scarlet-light);
  color: var(--scarlet);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-card-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-card-info {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.social-card-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
  line-height: 1.2;
}

.social-card-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contact Form */
.contact-form-card { padding: 32px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--scarlet);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(16px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
  background: var(--scarlet);
  border-color: var(--scarlet);
}

.modal-close-btn span{
  transform: translateY(-2px);
}

.modal-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--scarlet);
  background: var(--scarlet-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 10px;
  border: none;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--black) !important;
  -webkit-text-fill-color: var(--black) !important;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-features-list {
  margin-bottom: 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-features-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.modal-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--scarlet);
  font-weight: 700;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--black);
  border: none;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  transition: transform var(--transition-normal);
}

.toast.show { transform: translateX(0); }

.toast-icon { color: var(--scarlet); }

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  color: var(--scarlet);
  border-color: var(--scarlet);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-card-main { grid-column: span 12; }
  .bento-card-code { grid-column: span 12; }
  .bento-card-pillar { grid-column: span 6; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    transform: none;
    width: 100%;
    height: 60px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none;
  }

  .navbar.scrolled {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: flex;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
    background: transparent;
  }

  .hero {
    padding: 70px 0 60px;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card-pillar { grid-column: span 12; }
  .projects-grid { grid-template-columns: 1fr; }
  .social-cards-grid { grid-template-columns: 1fr; }
  .hero-socials { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .modal-container { padding: 22px 16px; }
  .contact-form-card { padding: 22px 16px; }
}
