:root {
  --bg: #0b0c10;
  --panel: #111218;
  --muted: #a7b1c2;
  --text: #e8ecf2;
  --accent: #ef3e4a;
  --border: #1d1f27;
  --card: #12131a;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.topbar {
  position: static;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(11, 12, 16, 0.8);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  z-index: 10;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: var(--border);
  color: var(--accent);
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--muted);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin: 0;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

h3 {
  margin: 0 0 8px;
}

.lede {
  max-width: 760px;
  color: #cbd5e1;
}

.accent {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), #ff6b6b);
  color: #0b0c10;
  border-color: transparent;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  border-color: #2a2d38;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid;
  border-radius: 14px;
  padding: 18px;
  border-image: linear-gradient(120deg, var(--accent), #ff6b6b) 1;
}

.facts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.facts strong {
  color: var(--text);
  font-weight: 600;
}

.chip-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip {
  background: #181a21;
  color: #d8dee9;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.project {
  display: grid;
  grid-template-rows: 250px 1fr;
  gap: 12px;
}

.project-media {
  width: 100%;
  height: 260px;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
  background: #0f1118;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-media.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project .link {
  color: var(--accent);
  font-weight: 600;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 22px 32px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 12px;
}

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

@media (max-width: 900px) {
  .page {
    padding-top: 96px;
  }

  .topbar {
    position: sticky;
  }

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

  .project {
    grid-template-rows: 160px 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 2.1rem;
  }

  .panel {
    padding: 22px;
  }
}



.about-me-enhanced {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  overflow: hidden;
}


.animated-gradient-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(239, 68, 68, 0.3),
    rgba(59, 130, 246, 0.3),
    rgba(168, 85, 247, 0.3),
    rgba(239, 68, 68, 0.3)
  );
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
  filter: blur(40px);
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(239, 68, 68, 0.5);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}


.about-content {
  position: relative;
  z-index: 10;
}

.about-label {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.about-heading {
  font-size: 2.25rem;
  color: #ffffff;
  margin-bottom: 2rem;
  font-weight: 700;
}

.cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}


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

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

.about-main-content {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 1s ease;
}

.about-main-content.visible {
  opacity: 1;
  transform: translateX(0);
}

.content-card {
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #1f2937;
  transition: all 0.3s ease;
}

.content-card:hover {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), 0 0 40px rgba(239, 68, 68, 0.2);
}

.content-card p {
  color: #d1d5db;
  line-height: 1.7;
  margin: 0;
}


.about-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateX(40px);
  transition: all 1s ease 0.3s;
}

.about-info-cards.visible {
  opacity: 1;
  transform: translateX(0);
}

.info-card {
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #1f2937;
  transition: all 0.3s ease;
  cursor: default;
  opacity: 0;
  transform: translateY(20px);
}

.info-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-card:hover {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), 0 0 40px rgba(239, 68, 68, 0.2);
  transform: translateY(-4px) scale(1.02);
}

.info-card-inner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.info-icon {
  color: #ef4444;
  margin-top: 0.25rem;
  transition: transform 0.3s ease;
}

.info-card:hover .info-icon {
  transform: scale(1.1) rotate(12deg);
}

.info-label {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.info-value {
  color: #ffffff;
  font-size: 1rem;
}


.decorative-blob {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse-blob 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

.blob-1 {
  background: rgba(239, 68, 68, 0.2);
  left: -80px;
  top: -80px;
}

.blob-2 {
  background: rgba(59, 130, 246, 0.2);
  right: -80px;
  bottom: -80px;
  animation-delay: 1s;
}

@keyframes pulse-blob {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@media (max-width: 767px) {
  .about-me-enhanced {
    padding: 60px 20px;
  }

  .about-heading {
    font-size: 1.875rem;
  }
}
