/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --accent-color: #00aaff;
  --secondary-color: #333333;
  --card-bg: #252525;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background-color: var(--accent-color);
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

ul {
  list-style: none;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 20px;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 英雄区样式 */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* 项目页面的粒子背景样式 */
.project-gallery {
  position: relative;
}

.project-gallery #particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--text-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #cccccc;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--text-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
}

/* 艺术字hello样式 */
.art-hello {
  font-size: 4.5rem; /* 和北辰字体一样大 */
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ff6b6b, #feca57, #1dd1a1, #5f27cd, #ff9ff3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
  transform: skew(-5deg); /* 稍微倾斜一点 */
  font-family: 'Inter', cursive, sans-serif; /* 添加cursive字体作为艺术字体备选 */
}

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

/* 放大北辰文字 */
.bigger-name {
  font-size: 4.5rem; /* 比原来的3.5rem稍大 */
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--text-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 关于我区域样式 */
.about {
  padding: 120px 0;
  background-color: var(--secondary-color);
  position: relative;
  overflow: hidden;
  border: none;
  margin: 0;
}





.about-content {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

.profile-pic {
  flex: 1;
  min-width: 300px;
}

.profile-pic img {
  width: 100%;
  max-width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.3);
  margin: 0 auto;
  display: block;
}

.about-text {
  flex: 2;
  min-width: 300px;
  max-width: 500px; /* 限制最大宽度，使文本行更短 */
  margin: 0 auto;
}

/* 自我介绍标题艺术字 */
.about h2 {
  font-size: 3rem;
  background: linear-gradient(135deg, #ff6b6b, #feca57, #1dd1a1, #5f27cd, #ff9ff3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
  transform: skew(-5deg);
  font-family: 'Inter', cursive, sans-serif;
  display: inline-block;
  position: relative; /* 确保::after伪元素正确定位 */
}

/* 隐藏自我介绍标题下方的蓝色下划线 */
.about h2::after {
  display: none;
}

/* 隐藏作品集标题下方的蓝色下划线 */
.projects h2::after {
  display: none;
}

/* 隐藏联系我标题下方的蓝色下划线 */
.contact h2::after {
  display: none;
}

/* 隐藏精选文章标题下方的蓝色下划线 */
.articles h2::after {
  display: none;
}

/* 隐藏文章画廊页面标题下方的蓝色下划线 */
.articles-gallery h2::after {
  display: none;
}

/* 谢谢观看艺术字效果 */
.art-text {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #ff6b6b, #feca57, #1dd1a1, #5f27cd, #ff9ff3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
  transform: skew(-5deg);
  font-family: 'Inter', cursive, sans-serif;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 自我介绍文本样式 */
.about-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 500;
  /* 艺术字效果 */
  background: linear-gradient(90deg, #ffffff, #a8d8ea, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradient 10s ease infinite;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  font-family: 'Inter', cursive, sans-serif;
}

/* 诗句艺术字效果 */
.about-text p:nth-child(5) {
  font-size: 1.3rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ff9ff3, #feca57, #ff9ff3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.skills {
  margin-top: 2rem;
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--card-bg);
  border-radius: 10px;
  transition: var(--transition);
}

.skill-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.skill-item span {
  font-size: 0.9rem;
  text-align: center;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 项目展示区域样式 */
.projects {
  padding: 120px 0;
}

/* 项目卡片链接样式，确保不破坏现有样式 */
.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* 项目画廊页面样式 */
.project-gallery {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

/* 返回链接样式 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.back-link:hover {
  transform: translateX(-5px);
}

/* 导航栏返回按钮样式 */
.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: var(--transition);
  margin-right: 1rem;
}

.back-button:hover {
  background-color: var(--accent-color);
  color: var(--text-color);
  transform: translateX(-3px);
}

/* 响应式设计 - 在移动设备上隐藏返回按钮 */
@media (max-width: 768px) {
  .back-button {
    display: none;
  }
}

/* 项目描述样式 */
.project-description {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-description p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* dream项目标题艺术字样式 */
.art-project-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ff9ff3, #54a0ff, #10ac84, #ff9ff3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 400% 400%;
  animation: gradient 10s ease infinite;
  transform: skew(-3deg) rotate(-1deg);
  font-family: 'Inter', cursive, sans-serif;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  display: inline-block;
  position: relative;
}

.art-project-title::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(135deg, #ff9ff3, #54a0ff, #10ac84, #ff9ff3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(3px);
  opacity: 0.7;
}

/* dream项目描述艺术字样式 */
.art-description {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.8;
  background: linear-gradient(90deg, #ffffff, #a8d8ea, #ff9ff3, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  font-family: 'Inter', cursive, sans-serif;
  display: inline-block;
}

/* ME项目标题艺术字样式 */
.art-project-title-me {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ff6b6b, #feca57, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
  transform: skew(2deg) rotate(1deg);
  font-family: 'Inter', cursive, sans-serif;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  display: inline-block;
  position: relative;
}

.art-project-title-me::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(135deg, #ff6b6b, #feca57, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(3px);
  opacity: 0.7;
}

/* ME项目描述艺术字样式 */
.art-description-me {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.8;
  background: linear-gradient(90deg, #ffffff, #ff9ff3, #feca57, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 400% 400%;
  animation: gradient 12s ease infinite;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  font-family: 'Inter', cursive, sans-serif;
  display: inline-block;
}

/* 特色图片样式 */
.featured-image {
  grid-column: 1 / -1; /* 使图片占据整个网格宽度 */
  max-width: 800px;
  margin: 0 auto;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.featured-image:hover {
  transform: scale(1.05) translateY(-5px);
}

.featured-image img {
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* 精选文章区域样式 */
.articles {
  padding: 120px 0;
  background-color: var(--secondary-color);
  min-height: 400px;
  display: flex;
  align-items: center;
}

/* 精选文章画廊页面样式 */
.articles-gallery {
  padding: 150px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.articles h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: var(--text-color);
}

.articles-preview {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.articles-preview p {
  font-size: 1.2rem;
  color: var(--text-color-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.view-all-articles {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.view-all-articles:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background-color: var(--accent-color-hover);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .featured-image {
    max-width: 100%;
  }
  
  .art-project-title-me {
    font-size: 2.5rem;
  }
  
  .art-description-me {
    font-size: 1.2rem;
  }
}

/* 随手拍项目标题艺术字样式 */
.art-project-title-photo {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ff9f43, #feca57, #ff9f43);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 400% 400%;
  animation: gradient 10s ease infinite;
  transform: skew(-2deg) rotate(0deg);
  font-family: 'Inter', cursive, sans-serif;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  display: inline-block;
  position: relative;
}

.art-project-title-photo::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(135deg, #ff9f43, #feca57, #ff9f43);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(3px);
  opacity: 0.7;
}

/* 随手拍项目描述艺术字样式 */
.art-description-photo {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.8;
  background: linear-gradient(90deg, #ffffff, #ff9f43, #ee5253, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  font-family: 'Inter', cursive, sans-serif;
  display: inline-block;
}

/* 响应式调整 - 随手拍项目 */
@media (max-width: 768px) {
  .art-project-title-photo {
    font-size: 2.5rem;
  }
  
  .art-description-photo {
    font-size: 1.2rem;
  }
}

/* 画廊网格样式 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 3rem; /* 添加底部填充，确保页面底部没有空白 */
}

/* 画廊图片项样式 */
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  position: relative;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #ff9ff3, #54a0ff, #10ac84, #ff9ff3);
  z-index: -1;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-item:hover::before {
  opacity: 1;
  animation: gradientBorder 8s ease infinite;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 159, 243, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 250px; /* 设置固定高度，确保所有图片高度一致 */
  object-fit: cover;
  display: block;
  transition: var(--transition);
  filter: brightness(0.8) contrast(1.1); /* 增强图片对比度和深度 */
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.2); /* 悬停时增加亮度和对比度 */
}

/* 为每个画廊项添加独特的渐变光晕效果 */
.gallery-item:nth-child(1)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 159, 243, 0.2), transparent 70%);
  pointer-events: none;
}

.gallery-item:nth-child(2)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(84, 160, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.gallery-item:nth-child(3)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(16, 172, 132, 0.2), transparent 70%);
  pointer-events: none;
}

.gallery-item:nth-child(4)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 159, 243, 0.2), transparent 70%);
  pointer-events: none;
}

.gallery-item:nth-child(5)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 70%, rgba(84, 160, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.gallery-item:nth-child(6)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 40% 60%, rgba(16, 172, 132, 0.2), transparent 70%);
  pointer-events: none;
}

.gallery-item:nth-child(7)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, rgba(255, 159, 243, 0.2), transparent 70%);
  pointer-events: none;
}

/* 渐变边框动画 */
@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.project-tags span {
  background-color: rgba(0, 170, 255, 0.2);
  color: var(--accent-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary-color);
  padding: 0.7rem 1.2rem;
  border-radius: 5px;
  transition: var(--transition);
}

.project-links a:hover {
  background-color: var(--accent-color);
  color: var(--text-color);
}

/* 联系区域样式 */
.contact {
  padding: 120px 0;
  background-color: var(--secondary-color);
  text-align: center;
}

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

.email-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
}

.email-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.email-link:hover {
  transform: translateY(-3px);
}

/* 页脚样式 */
.footer {
  padding: 2rem 0;
  background-color: #111111;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer .social-links {
  margin-top: 1rem;
}

.footer .social-links a {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  .about-content {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background-color: var(--secondary-color);
    width: 80%;
    height: calc(100vh - 70px);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }
  .nav-links.active {
    right: 0;
  }
  .menu-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .navbar .container {
    padding: 1rem 20px;
  }
  .social-links a {
    width: 40px;
    height: 40px;
  }
  .about, .projects, .contact {
    padding: 80px 0;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
}`