:root {
  --primary: #6db99f;
  --secondary: #f2f7f5;
  --text: #333;
  --accent: #a3d2ca;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: var(--secondary);
  color: var(--text);
  padding: 70px 0 0 0; /* Account for fixed navbar, no horizontal padding */
}

/* Vector background for about-me page */
body:has(.about) {
  background: 
    radial-gradient(circle at 20% 80%, rgba(109, 185, 159, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(163, 210, 202, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(109, 185, 159, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, 
      rgba(242, 247, 245, 0.95) 0%, 
      rgba(255, 255, 255, 0.98) 25%, 
      rgba(242, 247, 245, 0.95) 50%, 
      rgba(255, 255, 255, 0.98) 75%, 
      rgba(242, 247, 245, 0.95) 100%
    ),
    var(--secondary);
  background-attachment: fixed;
  position: relative;
}

/* Add geometric vector patterns */
body:has(.about)::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    /* Subtle geometric patterns */
    radial-gradient(circle at 1px 1px, rgba(109, 185, 159, 0.3) 1px, transparent 0),
    linear-gradient(45deg, transparent 48%, rgba(163, 210, 202, 0.1) 49%, rgba(163, 210, 202, 0.1) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(109, 185, 159, 0.08) 49%, rgba(109, 185, 159, 0.08) 51%, transparent 52%);
  background-size: 60px 60px, 80px 80px, 120px 120px;
  background-position: 0 0, 20px 20px, 40px 40px;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

/* Add floating geometric shapes */
body:has(.about)::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    /* Floating circles */
    radial-gradient(circle at 15% 25%, rgba(109, 185, 159, 0.1) 0%, transparent 25%),
    radial-gradient(circle at 85% 75%, rgba(163, 210, 202, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 65% 15%, rgba(109, 185, 159, 0.06) 0%, transparent 20%),
    radial-gradient(circle at 25% 85%, rgba(163, 210, 202, 0.05) 0%, transparent 35%),
    /* Subtle lines */
    linear-gradient(30deg, transparent 45%, rgba(109, 185, 159, 0.03) 50%, transparent 55%),
    linear-gradient(-30deg, transparent 45%, rgba(163, 210, 202, 0.02) 50%, transparent 55%);
  background-size: 300px 300px, 250px 250px, 200px 200px, 350px 350px, 400px 400px, 450px 450px;
  background-position: 0 0, 100px 200px, 300px 50px, 150px 400px, 0 0, 200px 300px;
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
  animation: floatBackground 20s ease-in-out infinite;
}

@keyframes floatBackground {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  50% {
    transform: translateY(5px) rotate(-0.5deg);
  }
  75% {
    transform: translateY(-5px) rotate(0.5deg);
  }
}

/* Modern Horizontal Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-image {
  height: 73px;
  width: auto;
  margin-right: 0.75rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-20px);
  opacity: 0;
}

.brand-link:hover .brand-image {
  transform: scale(1.05);
}

.brand-image.visible {
  transform: translateX(0);
  opacity: 1;
}

.brand-text {
  font-family: 'Original Surfer', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.navbar-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 2rem;
}

.navbar-item {
  position: relative;
}

.navbar-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Roboto', sans-serif;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

.navbar-link:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar-container {
    padding: 0 1rem;
  }
  
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem 0;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-menu.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-item {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .navbar-item:last-child {
    border-bottom: none;
  }
  
  .navbar-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .navbar-link::after {
    display: none;
  }
  
  .navbar-link:hover {
    background: rgba(109, 185, 159, 0.1);
    color: var(--primary);
    transform: none;
  }
  
  .brand-text {
    font-size: 1.25rem;
  }
  
  .brand-image {
    height: 40px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 0.75rem;
  }
  
  .brand-text {
    font-size: 1.1rem;
  }
  
  .brand-image {
    height: 35px;
    width: auto;
    margin-right: 0.5rem;
  }
}
/* Remove old sidebar styles - replaced with modern navbar above */

/* Remove old sidebar styles - replaced with modern navbar above */
header {
  background: white;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-top: 0; /* Remove top margin since navbar is fixed */
}

header h1 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  font-size: 2.5rem;
  color: var(--primary);
}

header p {
  margin-top: 0.5rem;
  font-style: italic;
  color: black;
}
section {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Portfolio-specific margins */
body:has(.search-filter-container) section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.about {
  max-width: 100%;
  margin: 4rem 0 0 0;
  padding: 0;
  text-align: center;
  color: #1a1a1a;
  position: relative;
  z-index: 1;
}

.about-content {
  display: flex;
  gap: 0;
  align-items: flex-start;
  margin-top: 2rem;
}

.about-images-left,
.about-images-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.about-images-left {
  margin-right: 2rem;
}

.about-images-right {
  margin-left: 2rem;
}

.about-text {
  flex: 2;
  text-align: left;
  padding: 0 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 2px solid rgba(109, 185, 159, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(109, 185, 159, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(109, 185, 159, 0.05));
  backdrop-filter: blur(10px);
}

.about-image.animate-in {
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Smooth parallax movement without conflicting with animations */
.about-image.animate-in.parallax-ready {
  transform: translateY(0);
  transition: none; /* Remove transition for smooth parallax */
}

/* Apply parallax transform to image containers - this will override the animation */
.about-image-container {
  transform: translateY(var(--parallax-y, 0px)) scale(0.95) !important;
}

/* Staggered animation delays for sequential entrance */
.about-image-container:nth-child(1) {
  animation-delay: 0.1s;
}

.about-image-container:nth-child(2) {
  animation-delay: 0.3s;
}

.about-image-container:nth-child(3) {
  animation-delay: 0.5s;
}

.about-image:last-child {
  border-bottom: none;
}

/* Image container for hover effects */
.about-image-container {
  display: block;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 16px;
  overflow: hidden;
  margin: 0.1rem 0;
  opacity: 0;
  animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.about-image-container:hover {
  transform: translateY(var(--parallax-y, 0px)) scale(1.12) rotate(2deg) translateX(3px) translateY(-12px) !important;
  z-index: 10;
  position: relative;
}

.about-image-container:hover .about-image {
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.3),
    0 20px 40px rgba(109, 185, 159, 0.35),
    0 10px 25px rgba(109, 185, 159, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(109, 185, 159, 0.8);
  filter: brightness(1.08) contrast(1.15) saturate(1.1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* Parallax effect - all images move at the same rate */

@media (max-width: 1024px) {
  .about-content {
    gap: 0;
  }
  
  .about-images-left,
  .about-images-right {
    gap: 0;
  }
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    gap: 0;
  }
  
  .about-text {
    text-align: center;
    order: 2;
    padding: 0 1rem;
  }
  
  .about-images-left {
    order: 1;
    flex-direction: row;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .about-images-right {
    order: 3;
    flex-direction: row;
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .about-image {
    width: 33.333%;
    height: 200px;
    object-fit: cover;
    border-bottom: none;
    border-right: 2px solid rgba(109, 185, 159, 0.2);
    border-radius: 12px;
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.1),
      0 2px 8px rgba(109, 185, 159, 0.15);
  }
  
  .about-image:last-child {
    border-right: none;
  }
}
/* Remove old mobile margin reset - no longer needed */

.about-name {
  font-family: 'Original Surfer', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 0;
  letter-spacing: 0.04em;
}

.about-title {
  font-family: 'Original Surfer', sans-serif;
  font-weight: 1;
  font-size: 1.75rem;
  color: #555;
  margin: 1rem;
}

.about p {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
  letter-spacing: 0.02em;
}

.about p a {
  color: #41a8b3;
  text-decoration: none;
  font-weight: 900;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  background-image: linear-gradient(to right, transparent, transparent);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 100%;
}

.about p a:hover {
  color: #2d7a82;
  transform: translateY(-2px);
  text-shadow: 0 2px 4px rgba(65, 168, 179, 0.3);
  border-bottom-color: #41a8b3;
  background-image: linear-gradient(to right, #41a8b3, #41a8b3);
  background-size: 100% 1px;
  animation: underlineSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes underlineSlide {
  0% {
    background-size: 0% 1px;
  }
  100% {
    background-size: 100% 1px;
  }
}

.about p a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.about p.signature {
  font-family: 'Clicker Script', cursive;
  font-size: 4rem;
  font-weight: normal;
  margin-top: 1rem;
  margin-bottom: 0;
  display: block;
  text-align: right;
  transform: rotate(-5deg);
  color: #333;
  letter-spacing: normal;
}


/* --- Card Caption Container --- */
.card-caption {
padding-top: 0.5rem;
  font-family: 'Merriweather', serif;
  color: #333;
  flex-shrink: 0;
  background: transparent; /* make sure no background */
  min-height: 100px; /* optional for consistent height */
}


/* --- Meta Line: Outlet + Category --- */
.card-caption .meta-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #777;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Divider Style */
.meta-line .divider {
  color: #ccc;
  font-weight: normal;
}

/* Outlet: slightly bolder and darker */
.card-caption .outlet-text {
  color: #444;
  font-weight: 700;
}

/* Category: lighter visual weight */
.card-caption .category-text {
  color: #888;
  font-weight: 600;
}


/* --- Title (h3) --- */
.card-caption h3 {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0.25rem 0;
  line-height: 1.4;
  text-transform: capitalize;
}

/* --- Summary / Subtitle --- */
.card-caption .subtitle-text {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* --- Responsive & Clean Look --- */
.article-card {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.article-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.article-content {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer; /* shows clickable */
  border-radius: 0; /* no rounding as you want */
}

/* Hover effect on entire card */
.article-content:hover {
  transform: translateY(-4px);
}

/* Optional grid container if needed */
.articles {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Portfolio-specific articles margin */
body:has(.search-filter-container) .articles {
  margin: 2rem 0;
}


.caption-text {
  font-size: 0.85rem;
  font-weight: 400;
  color: #333;
}

.card-content {
  background: rgba(0, 0, 0, 0.5); /* translucent black */
  color: white;
  padding: 1rem;
  width: 100%;
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card-content p {
  font-size: 0.9rem;
  margin: 0;
}

.article-card h3 {
  margin-top: 0;
  color: var(--primary);
}

.see-more-button {
  display: inline-block;
  padding: 10px 26px;
  background-color: transparent;
  color: #111;            /* almost black text */
  border: 2px solid #111; /* black border */
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;  /* removes underline */
}

.see-more-button:hover,
.see-more-button:focus {
  background-color: #111; /* black fill on hover */
  color: #f2f7f5;          /* light background text */
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

#filter,
#search {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
  color: #333;
}

#filter {
  min-width: 160px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6H0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
  cursor: pointer;
}

#search {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

#filter:hover,
#filter:focus,
#search:hover,
#search:focus {
  border-color: #999;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  outline: none;
  background-color: #f9f9f9;
}


.contact {
  margin: 0 auto;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: #222;
}

/* Portfolio-specific contact margins */
body:has(.search-filter-container) .contact {
  margin: 4rem auto 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.contact h2 {
  margin-bottom: 1rem;
}

h1, h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
}

.about p {
  font-family: 'Roboto', sans-serif;
}

.about-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Staggered animation for multiple social links */
.social-link:nth-child(1) {
  animation-delay: 0.1s;
}

.social-link:nth-child(2) {
  animation-delay: 0.2s;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
  background-color: transparent;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 48px;
  min-height: 48px;
  transform: translateY(-1px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #5a9a7f 100%);
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.social-link:hover {
  color: white;
  transform: translateY(-8px) rotate(5deg) scale(1.2);
  box-shadow: 
    0 20px 50px rgba(109, 185, 159, 0.5),
    0 10px 30px rgba(109, 185, 159, 0.3),
    0 0 0 10px rgba(109, 185, 159, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  animation: bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-link:hover::before {
  opacity: 1;
  animation: rainbow 2s linear infinite;
}

.social-link:active {
  transform: translateY(-6px) rotate(3deg) scale(1.1);
  transition: transform 0.1s ease;
}

.social-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  transform: scale(1.05);
}

.social-link:hover .social-icon {
  fill: white;
  transform: scale(1.3);
}

/* Silly bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(-8px) rotate(5deg) scale(1.2);
  }
  40% {
    transform: translateY(-12px) rotate(8deg) scale(1.25);
  }
  60% {
    transform: translateY(-10px) rotate(6deg) scale(1.22);
  }
}

/* Rainbow background animation */
@keyframes rainbow {
  0% { background: linear-gradient(135deg, #ff0000 0%, #ff7f00 100%); }
  16.66% { background: linear-gradient(135deg, #ff7f00 0%, #ffff00 100%); }
  33.33% { background: linear-gradient(135deg, #ffff00 0%, #00ff00 100%); }
  50% { background: linear-gradient(135deg, #00ff00 0%, #0000ff 100%); }
  66.66% { background: linear-gradient(135deg, #0000ff 0%, #4b0082 100%); }
  83.33% { background: linear-gradient(135deg, #4b0082 0%, #9400d3 100%); }
  100% { background: linear-gradient(135deg, #9400d3 0%, #ff0000 100%); }
}


/* LinkedIn specific default styling */
.social-link[href*="linkedin"] {
  box-shadow: 
    0 4px 15px rgba(0, 119, 181, 0.2),
    0 2px 8px rgba(0, 119, 181, 0.1);
}

.social-link[href*="linkedin"]:hover {
  box-shadow: 
    0 25px 60px rgba(0, 119, 181, 0.6),
    0 15px 40px rgba(0, 119, 181, 0.4),
    0 0 0 15px rgba(0, 119, 181, 0.15);
  animation: linkedinWiggle 0.8s ease-in-out;
}

.social-link[href*="linkedin"]:hover::before {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
  animation: linkedinPulse 1.5s ease-in-out infinite;
}

.social-link[href*="linkedin"]::before {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

/* Instagram specific default styling */
.social-link[href*="instagram"] {
  box-shadow: 
    0 4px 15px rgba(225, 48, 108, 0.2),
    0 2px 8px rgba(225, 48, 108, 0.1);
}

.social-link[href*="instagram"]:hover {
  box-shadow: 
    0 25px 60px rgba(225, 48, 108, 0.6),
    0 15px 40px rgba(225, 48, 108, 0.4),
    0 0 0 15px rgba(225, 48, 108, 0.15);
  animation: linkedinWiggle 0.8s ease-in-out;
}

.social-link[href*="instagram"]:hover::before {
  background: linear-gradient(135deg, #E1306C 0%, #C13584 50%, #833AB4 100%);
  animation: linkedinPulse 1.5s ease-in-out infinite;
}

.social-link[href*="instagram"]::before {
  background: linear-gradient(135deg, #E1306C 0%, #C13584 50%, #833AB4 100%);
}

/* LinkedIn wiggle animation */
@keyframes linkedinWiggle {
  0%, 100% { transform: translateY(-8px) rotate(5deg) scale(1.2); }
  25% { transform: translateY(-10px) rotate(-3deg) scale(1.25); }
  50% { transform: translateY(-12px) rotate(8deg) scale(1.3); }
  75% { transform: translateY(-9px) rotate(-2deg) scale(1.22); }
}

/* LinkedIn pulse animation */
@keyframes linkedinPulse {
  0%, 100% { 
    transform: scale(1);
  }
  50% { 
    transform: scale(1.05);
  }
}


/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .social-link,
  .social-link::before,
  .social-icon {
    transition: none;
  }
  
  .social-link:hover {
    transform: none;
  }
  
  .social-link:hover .social-icon {
    transform: none;
  }
  
  /* Disable background animations for reduced motion */
  body:has(.about)::after {
    animation: none;
  }
}

/* Reduce background animation on mobile for better performance */
@media (max-width: 768px) {
  body:has(.about)::after {
    animation-duration: 30s;
  }
  
  /* Simplify background patterns on mobile */
  body:has(.about)::before {
    background-size: 40px 40px, 60px 60px, 80px 80px;
    opacity: 0.4;
  }
}

.headshot-mobile {
  display: none;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* Portfolio-specific footer margins */
body:has(.search-filter-container) footer {
  margin: 2rem auto 0 auto;
  max-width: 1200px;
}

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

/* Remove old mobile margin resets - no longer needed with horizontal navbar */

.responsive-break::after {
  content: "\A";            /* Line break */
  white-space: pre;
}

@media (max-width: 768px) {
  .responsive-break::after {
    content: "  ";           /* Just a space */
  }
}


/* Remove old sidebar mobile styles - replaced with modern navbar above */

/* Responsive typography for small devices */
@media (max-width: 480px) {
  .article-card {
    min-height: 160px;
  }
  .social-link {
    font-size: 1rem;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    min-width: 44px;
    min-height: 44px;
  }
  .social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

.header-name-text {
  width: 100%;
  max-width: 625px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.header-image {
  width: 100%;
  height: auto;
  display: block;
}