@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --primary: #E53E3E;
  /* Vibrant Red */
  --primary-hover: #C53030;
  --text: #1A202C;
  /* Deep dark text */
  --text-muted: #718096;
  --bg: #F7FAFC;
  /* Off-white background */
  --nav-bg: #FFFFFF;
  /* White nav */
  --border: #E2E8F0;
  --card-bg: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

/* Delay classes for staggered animations */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

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

a:hover {
  color: var(--primary-hover);
}

header {
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -2px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
  text-decoration: none;
  transform: scale(1.1) rotate(-5deg);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 1.1rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

nav a:hover::after {
  width: 100%;
}

main {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  /* Pill shape */
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px 0 rgba(229, 62, 62, 0.39);
}

.button:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.23);
}

.button-outline {
  background-color: transparent;
  color: var(--primary);
  box-shadow: none;
}

.button-outline:hover {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(229, 62, 62, 0.39);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--card-bg);
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  text-align: left;
}

th {
  background-color: var(--nav-bg);
  font-weight: 600;
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

tr {
  transition: background-color 0.2s;
}

tr:hover {
  background-color: #F8FAFC;
}

/* Card Styling for Posts */
.post-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.post-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.post-card h2 a {
  color: var(--text);
  transition: color 0.2s;
}

.post-card:hover h2 a {
  color: var(--primary);
}

.post-date {
  font-size: 0.9rem;
  color: #A0AEC0;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

ul.skills,
ul.contact-links {
  list-style: none;
  margin-bottom: 2rem;
}

ul.skills li,
ul.contact-links li {
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  position: relative;
  color: var(--text-muted);
}

ul.skills li::before,
ul.contact-links li::before {
  content: '✦';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  background-color: var(--nav-bg);
}

/* Progress Bar */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

.progress-bar {
  height: 3px;
  background: var(--primary);
  width: 0%;
}

/* Utilities */
.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.gap-1 {
  gap: 1rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

/* Responsive */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .post-card {
    padding: 1.5rem;
  }
}