/* Comic Code declarations */
@font-face {
    font-family: 'Comic Code';
    src: url('https://www.doughmination.win/fonts/ComicCode-Regular_2022-05-24-151938_hsmz.woff2') format('woff2'),
         url('https://www.doughmination.win/fonts/ComicCode-Regular_2022-05-24-151938_hsmz.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Comic Code';
    src: url('https://www.doughmination.win/fonts/ComicCode-Italic_2022-05-24-151939_rdtu.woff2') format('woff2'),
         url('https://www.doughmination.win/fonts/ComicCode-Italic_2022-05-24-151939_rdtu.woff') format('woff');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Comic Code';
    src: url('https://www.doughmination.win/fonts/ComicCode-Medium_2022-05-24-151941_ugqm.woff2') format('woff2'),
         url('https://www.doughmination.win/fonts/ComicCode-Medium_2022-05-24-151941_ugqm.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Comic Code';
    src: url('https://www.doughmination.win/fonts/ComicCode-Bold_2022-05-24-152309_zqkm.woff2') format('woff2'),
         url('https://www.doughmination.win/fonts/ComicCode-Bold_2022-05-24-152309_zqkm.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* Main theme variables - Faesexual Flag colors */
:root {
  /* Main colors - Faesexual Flag colors */
  --background: #1a0d1a;              /* Very dark purple/black */
  --card-bg: #2d1b2d;                 /* Dark purple background */
  --primary-color: #d946ef;           /* Bright magenta/purple */
  --secondary-color: #fbbf24;         /* Golden yellow */
  --accent-color: #fb7185;            /* Coral pink */
  --tertiary-color: #f97316;          /* Orange from flag */
  --quaternary-color: #eab308;        /* Yellow-green from flag */
  
  /* Text colors */
  --text-color: #FFFFFF;              /* White */
  --light-text: #fef3c7;             /* Light creamy yellow */
  
  /* UI elements */
  --border-color: #7c2d92;            /* Medium purple for borders */
  --hover-color: #a855f7;             /* Purple hover state */
  
  /* Gradients using the flag colors */
  --gradient-start: #d946ef;          /* Bright magenta */
  --gradient-end: #fbbf24;            /* Golden yellow */
  --gradient-middle: #fb7185;         /* Coral pink */
  
  /* Keep trans colors for special elements if needed */
  --trans-blue: #5BCEFA;
  --trans-pink: #F5A9B8;
  --trans-white: #FFFFFF;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

body {
  font-family: 'Comic Code', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  background-image: radial-gradient(rgba(217, 70, 239, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: -5px -5px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ASCII Butterfly elements - with faesexual colors */
.ascii-butterfly {
  position: fixed;
  font-family: 'Comic Code';
  white-space: pre;
  line-height: 1.2;
  font-size: 8px;
  z-index: 1;
  pointer-events: none;
  text-shadow: 0 0 2px var(--background);
  opacity: 0.7;
}

/* Faesexual colors */
.color-magenta { color: #d946ef; }
.color-coral { color: #fb7185; }
.color-orange { color: #f97316; }
.color-yellow { color: #fbbf24; }
.color-lime { color: #eab308; }

/* Butterfly positions */
.butterfly-top-right {
  top: 5%;
  right: 3%;
  transform: scale(0.7);
  animation: butterfly-float-1 20s ease-in-out infinite;
}

.butterfly-bottom-left {
  bottom: 5%;
  left: 3%;
  transform: scale(0.6) rotate(15deg);
  animation: butterfly-float-2 22s ease-in-out infinite reverse;
}

.butterfly-footer {
  bottom: 20%;
  right: 8%;
  transform: scale(0.5) rotate(-10deg);
  animation: butterfly-float-3 25s ease-in-out infinite;
  opacity: 0.6;
}

/* Butterfly animations */
@keyframes butterfly-float-1 {
  0%, 100% { transform: scale(0.7) translate(0, 0); }
  25% { transform: scale(0.7) translate(10px, -15px); }
  50% { transform: scale(0.7) translate(5px, 10px); }
  75% { transform: scale(0.7) translate(-15px, 5px); }
}

@keyframes butterfly-float-2 {
  0%, 100% { transform: scale(0.6) rotate(15deg) translate(0, 0); }
  30% { transform: scale(0.6) rotate(10deg) translate(-15px, 10px); }
  60% { transform: scale(0.6) rotate(20deg) translate(10px, -15px); }
}

@keyframes butterfly-float-3 {
  0%, 100% { transform: scale(0.5) rotate(-10deg) translate(0, 0); }
  40% { transform: scale(0.5) rotate(-15deg) translate(20px, 10px); }
  70% { transform: scale(0.5) rotate(-5deg) translate(-10px, -10px); }
}

/* Header */
header {
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 0 5px rgba(217, 70, 239, 0.5);
}

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

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
  color: var(--text-color);
}

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

.resume-btn {
  background-color: var(--primary-color);
  color: var(--text-color) !important;
  padding: 8px 15px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.resume-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(251, 113, 133, 0.4);
}

/* Enhanced Hero Section */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--background) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Faesexual glow in hero section */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, 
                rgba(217, 70, 239, 0.1) 0%, 
                rgba(251, 191, 36, 0.05) 40%, 
                transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 10%;
  width: 30%;
  height: 100%;
  background: radial-gradient(
      ellipse at center,
      rgba(251, 191, 36, 0.2) 0%,
      rgba(251, 113, 133, 0.1) 50%,
      transparent 80%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  max-width: 600px;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.highlight {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(217, 70, 239, 0.3);
}

.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--light-text);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.cta-btn.primary {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: var(--text-color);
}

.cta-btn.primary:hover {
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.cta-btn.secondary:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.discord-badge, .discord-server {
  margin: 20px 0;
}

.discord-server a {
  color: var(--secondary-color);
  font-weight: 600;
  position: relative;
}

.discord-server a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.discord-server a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Pronouns and Identity Badges */
.pronouns-badge {
  margin: 15px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pronouns-badge a {
  display: inline-block;
  background-color: rgba(251, 113, 133, 0.15);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pronouns-badge a:hover {
  background-color: rgba(251, 113, 133, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(251, 113, 133, 0.3);
}

.identity-badge {
  display: inline-block;
  background-color: rgba(217, 70, 239, 0.15);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.identity-badge:hover {
  background-color: rgba(217, 70, 239, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(217, 70, 239, 0.3);
}

/* Faesexual flag border for identity section */
.identity-section {
  position: relative;
  border-left: 5px solid transparent;
  background-image: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--accent-color),
    var(--tertiary-color),
    var(--secondary-color),
    var(--quaternary-color)
  );
  background-clip: padding-box;
  margin-top: 30px;
  padding: 20px 20px 20px 25px;
  border-radius: 8px;
  background-color: var(--card-bg);
}

/* Sections */
section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
  text-shadow: 0 0 5px rgba(217, 70, 239, 0.3);
}

.subtitle {
  text-align: center;
  color: var(--light-text);
  margin-bottom: 40px;
}

/* Projects */
.projects {
  background-color: var(--background);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Enhanced Project Cards */
.project-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 
              0 0 10px rgba(217, 70, 239, 0.3);
  border-color: var(--primary-color);
}

.project-card:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.project-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.project-title a {
  color: inherit;
  text-decoration: none;
  display: block;
  position: relative;
  transition: all 0.2s ease;
}

.project-title a:hover {
  transform: translateX(5px);
}

.project-title a::after {
  content: '→';
  opacity: 0;
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.2s ease;
}

.project-title a:hover::after {
  opacity: 1;
  right: -25px;
}

.project-description {
  color: var(--text-color);
  margin-bottom: 20px;
  font-size: 1rem;
  flex-grow: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

/* Tech badge colors - updated with faesexual theme */
.tech-badge.javascript {
  background-color: rgba(251, 191, 36, 0.2);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.tech-badge.typescript {
  background-color: rgba(217, 70, 239, 0.2);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.tech-badge.react {
  background-color: rgba(251, 113, 133, 0.2);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.tech-badge.nodejs {
  background-color: rgba(234, 179, 8, 0.2);
  color: var(--quaternary-color);
  border-color: var(--quaternary-color);
}

.tech-badge.python {
  background-color: rgba(249, 115, 22, 0.2);
  color: var(--tertiary-color);
  border-color: var(--tertiary-color);
}

.tech-badge.java {
  background-color: rgba(251, 191, 36, 0.2);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.tech-badge.minecraft {
  background-color: rgba(234, 179, 8, 0.2);
  color: var(--quaternary-color);
  border-color: var(--quaternary-color);
}

.tech-badge.flask {
  background-color: rgba(168, 85, 247, 0.2);
  color: var(--hover-color);
  border-color: var(--hover-color);
}

.tech-badge.web {
  background-color: rgba(249, 115, 22, 0.2);
  color: var(--tertiary-color);
  border-color: var(--tertiary-color);
}

.tech-badge.discord {
  background-color: rgba(217, 70, 239, 0.2);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.tech-badge.html {
  background-color: rgba(249, 115, 22, 0.2);
  color: var(--tertiary-color);
  border-color: var(--tertiary-color);
}

.tech-badge.css {
  background-color: rgba(251, 113, 133, 0.2);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.tech-badge.github {
  background-color: rgba(168, 85, 247, 0.2);
  color: var(--hover-color);
  border-color: var(--hover-color);
}

.tech-badge.markdown {
  background-color: rgba(45, 27, 45, 0.5);
  color: var(--text-color);
  border-color: var(--border-color);
}

.tech-badge.webdev {
  background-color: rgba(251, 113, 133, 0.2);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--light-text);
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.project-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.github-btn {
  background-color: var(--hover-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.github-btn:hover {
  background-color: var(--card-bg);
  color: var(--primary-color);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

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

.demo-btn:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Project filtering */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 6px 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: var(--hover-color);
  color: var(--primary-color);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--text-color);
  border-color: var(--primary-color);
}

/* Hide organization filter since we're focusing on personal projects */
.filter-btn[data-filter="organization"] {
  display: none;
}

.filter-btn[data-filter="archive"] {
  background-color: var(--accent-color);
  color: var(--background);
  border-color: var(--accent-color);
}

.filter-btn[data-filter="archive"]:hover,
.filter-btn[data-filter="archive"].active {
  background-color: var(--tertiary-color);
  border-color: var(--tertiary-color);
}

.filter-btn[data-filter="personal"] {
  background-color: var(--primary-color);
  color: var(--text-color);
  border-color: var(--primary-color);
}

.filter-btn[data-filter="personal"]:hover,
.filter-btn[data-filter="personal"].active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Project grid animation */
.project-grid {
  transition: opacity 0.4s ease;
}

.project-grid.filtering {
  opacity: 0.6;
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--light-text);
}

/* Skills Section */
.skills-section {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--background) 100%);
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.skill-category {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 
              0 0 10px rgba(217, 70, 239, 0.3);
  border-color: var(--primary-color);
}

.skill-category h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.skill-category h3 i {
  margin-right: 10px;
  opacity: 0.9;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-item {
  background-color: var(--hover-color);
  color: var(--text-color);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.skill-item:hover {
  background-color: var(--primary-color);
  color: var(--text-color);
  transform: scale(1.05);
}

/* Stats Section */
.stats {
  background-color: var(--card-bg);
}

.stats-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.stats-card {
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4),
              0 0 10px rgba(217, 70, 239, 0.3);
}

.stats-card img {
  max-width: 100%;
  height: auto;
  display: block;
}

.github-calendar {
  margin: 30px 0;
  text-align: center;
}

.contributions-chart {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-views {
  text-align: center;
  margin: 20px 0;
}

.languages {
  margin-top: 40px;
  text-align: center;
}

.languages h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.language-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* Faesexual border container for special elements */
.faesexual-border-container {
  padding: 5px;
  display: inline-block;
  background: linear-gradient(to bottom, 
    var(--primary-color),
    var(--accent-color),
    var(--tertiary-color),
    var(--secondary-color),
    var(--quaternary-color)
  );
  border-radius: 10px;
}

/* Spotify Section */
.spotify {
  background-color: var(--background);
  text-align: center;
}

.spotify-widget {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.spotify-widget img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.spotify-widget img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4),
              0 0 10px rgba(217, 70, 239, 0.3);
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--background) 100%);
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-color);
  font-family: 'Comic Code', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.3);
}

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

.submit-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: var(--text-color);
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Comic Code', sans-serif;
}

.submit-btn:hover {
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(217, 70, 239, 0.4);
}

/* Footer */
footer {
  background-color: var(--card-bg);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right,
    var(--primary-color),
    var(--accent-color),
    var(--tertiary-color),
    var(--secondary-color),
    var(--quaternary-color)
  );
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-content p {
  color: var(--light-text);
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.copyright {
  font-size: 0.9rem;
  color: var(--light-text);
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .skills-categories {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 20px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 5px 15px;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .skills-categories {
    grid-template-columns: 1fr;
  }
  
  .stats-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .pronouns-badge,
  .language-badges {
    justify-content: center;
  }
  
  .social-links {
    flex-wrap: wrap;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Adjust butterfly positions for mobile */
  .butterfly-top-right {
    top: 2%;
    right: 1%;
    transform: scale(0.5);
  }
  
  .butterfly-bottom-left {
    bottom: 2%;
    left: 1%;
    transform: scale(0.4) rotate(15deg);
  }
  
  .butterfly-footer {
    display: none; /* Hide third butterfly on mobile for cleaner look */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 50px 0;
  }
  
  .cta-btn,
  .project-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  
  .project-filters {
    justify-content: center;
  }
  
  .filter-btn {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}

/* Print styles */
@media print {
  .ascii-butterfly,
  .hero-cta,
  .project-filters,
  .spotify,
  header nav {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .project-card,
  .skill-category {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .ascii-butterfly {
    animation: none;
  }
}

/* Focus styles for keyboard navigation */
button:focus,
a:focus,
input:focus,
textarea:focus,
.filter-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --background: #000000;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --border-color: var(--primary-color);
  }
  
  .project-card,
  .skill-category {
    border-width: 2px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
}

/* Selection styles */
::selection {
  background-color: var(--primary-color);
  color: var(--text-color);
}

::-moz-selection {
  background-color: var(--primary-color);
  color: var(--text-color);
}
