/* ===== Global ===== */
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  background: linear-gradient(135deg, #e9efff, #fefefe);
  color: #232323;
  line-height: 1.6;
  transition: all 0.3s ease;
}

body.dark-mode {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e2e8f0;
}

h1, h2 {
  font-weight: 700;
}

main {
  background-color: transparent;
  transition: all 0.3s ease;
}

body.dark-mode main {
  background-color: transparent;
}

/* ===== Logo ===== */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.logo img {
  height: 50px;
  display: block;
  object-fit: contain;
  vertical-align: middle;
  margin-top: 5px; /* ✅ 微调垂直对齐，消除视觉偏移 */
}


body.dark-mode .logo img {
  filter: brightness(200%);
}

/* ===== Navbar Base ===== */
#navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 72px;
  background: rgba(25, 55, 109, 0.75);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: all 0.3s ease;
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  #navbar {
    background: rgba(25, 55, 109, 0.75);
  }
}

@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  #navbar {
    background: rgba(25, 55, 109, 0.85);
  }
}

body.dark-mode #navbar {
  background: rgba(26, 26, 46, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  body.dark-mode #navbar {
    background: rgba(26, 26, 46, 0.85);
  }
}

@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  body.dark-mode #navbar {
    background: rgba(26, 26, 46, 0.95);
  }
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

/* ===== Desktop Navbar ===== */
@media (min-width: 769px) {
  .logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .logo img {
    height: 50px;
    display: block;
    object-fit: contain;
    vertical-align: middle;
    margin-top: 5px;
  }

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

  .menu li a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #ffffffcc;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.6rem;
    transition: all 0.25s ease;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }

  .menu li a:hover,
  .menu li a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 2px 12px rgba(255,255,255,0.2), inset 0 0 0 1px rgba(255,255,255,0.3);
  }

  .toggle-right-controls {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
  }

  .toggle-right-controls a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #ffffffcc;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.6rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }

  .toggle-right-controls a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 2px 12px rgba(255,255,255,0.2), inset 0 0 0 1px rgba(255,255,255,0.3);
  }

  .hamburger {
    display: none;
  }
}

/* ===== Mobile Navbar ===== */
@media (max-width: 768px) {
  .nav-container {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: relative;
  }

  .logo {
    width: 50px;
    flex: none;
    z-index: 1002;
  }

  .logo img {
    height: 40px;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
  }

  .toggle-right-controls {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    z-index: 1002;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    z-index: 1002;
    position: absolute;
    right: 1rem;
    transform: translateY(-50%);
    border: none;
    width: auto;
    height: auto;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.3s ease;
  }

  .hamburger.hide {
    opacity: 0;
    pointer-events: none;
  }

  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 1002;
    display: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .close-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
  }

  #menu.show {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    background: rgba(25, 55, 109, 0.75);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1004;
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 1;
    transform: translateX(0);
    right: 0;
  }

  #menu.show li {
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
  }

  #menu.show li:nth-child(1) { animation-delay: 0.1s; }
  #menu.show li:nth-child(2) { animation-delay: 0.2s; }
  #menu.show li:nth-child(3) { animation-delay: 0.3s; }
  #menu.show li:nth-child(4) { animation-delay: 0.4s; }
  #menu.show li:nth-child(5) { animation-delay: 0.5s; }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #menu.show li a {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #ffffffcc;
    padding: 0.8rem 2rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.6rem;
    transition: all 0.25s ease;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }

  #menu.show li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 2px 12px rgba(255,255,255,0.2), inset 0 0 0 1px rgba(255,255,255,0.3);
  }

  body.dark-mode #menu.show {
    background: rgba(26, 26, 46, 0.85);
  }

  body.dark-mode #menu.show li a {
    color: #eeeeeecc;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  body.dark-mode #menu.show li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 12px rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.2);
  }
}

/* ===== Dark Mode ===== */
body.dark-mode #navbar {
  background: rgba(26, 26, 46, 0.85);
}

body.dark-mode .menu li a,
body.dark-mode .toggle-right-controls a {
  color: #b3b3b3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .menu li a:hover,
body.dark-mode .menu li a.active,
body.dark-mode .toggle-right-controls a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.2);
}

body.dark-mode .hamburger {
  color: #fff;
  background: none;
  border: none;
}

body.dark-mode .hamburger:hover {
  background: none;
  opacity: 0.8;
}

body.dark-mode #menu.show {
  background: rgba(18, 18, 18, 0.98);
}

/* ===== Cover Section ===== */
.cover-section {
  height: 100vh;
  position: relative;
  background-color: #121212;
  transition: transform 0.3s ease-out;
}

.cover-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  transform: scale(1);
  transform-origin: top center;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.bg-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: fade 15s infinite;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* 为GIF图片设置更长的显示时间 */
.bg-slide[style*="tubi.gif"] {
  animation: fadeGif 30s infinite;
}

.bg-slide:nth-child(1) { animation-delay: 0s; }
.bg-slide:nth-child(2) { animation-delay: 3s; }
.bg-slide:nth-child(3) { animation-delay: 6s; }
.bg-slide:nth-child(4) { animation-delay: 9s; }
.bg-slide:nth-child(5) { animation-delay: 12s; }

/* GIF图片的延迟时间也相应调整 */
.bg-slide[style*="tubi.gif"]:nth-child(6) { animation-delay: 15s; }

@keyframes fade {
  0%, 100% { opacity: 0; }
  5%, 20%  { opacity: 1; }
  25%, 100% { opacity: 0; }
}

/* GIF图片的动画时间更长 */
@keyframes fadeGif {
  0%, 100% { opacity: 0; }
  5%, 45%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.cover-content {
  position: relative;
  z-index: 1;
  max-width: 50vw;
  margin-left: 6vw;
  padding-top: 12vh;
}

.headline-name {
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #2c5edb, #00ff73);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.headline-desc {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.2px;
  color: #ffffff;
  max-width: 32vw;
  margin-bottom: 2rem;
}

/* ===== Section Header ===== */
.section-header {
  padding: 0 6vw;
  text-align: center;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  background: linear-gradient(90deg, #1844e3, #4d7cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

body.dark-mode .section-subtitle {
  color: #b3b3b3;
}

/* ===== Project Section ===== */
.project-block {
  display: flex;
  padding: 4em 6vw;
  align-items: center;
  gap: 2em;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

body.dark-mode .project-block {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

body.dark-mode .project-block:hover {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.project-info {
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.dark-mode .project-info h2 {
  color: #f8fafc;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode .project-info p {
  color: #cbd5e1;
}

.project-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

body.dark-mode .project-img {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .project-img:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

body.dark-mode .project-img img {
  filter: brightness(0.9);
}

body.dark-mode .project-img:hover img {
  filter: brightness(1);
}

.about-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  color: #232323;
}

.about-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #1844e3, #4d7cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1rem;
}

.about-content p {
  margin-bottom: 1.2em;
}

#profile-pic {
  height: 200px;
  border-radius: 34px;
}

#profile-pic-container {
  display: flex;
  justify-content: center;
  align-items: center;
}


.divider {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #ccc;
}

.timeline-vertical {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
}

.timeline-date {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1844e3;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, #1844e3, #4d7cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  padding: 1.5rem 2rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.timeline-content h4 {
  margin: 0 0 0.8rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.5;
}

.timeline-content h4 strong {
  color: #1844e3;
  font-weight: 700;
}

.timeline-content p {
  margin: 0;
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
}

/* Dark mode styles */
body.dark-mode .timeline-content {
  background: rgba(30, 30, 30, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .timeline-content:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

body.dark-mode .timeline-content h4 {
  color: #e2e8f0;
}

body.dark-mode .timeline-content h4 strong {
  color: #4d7cff;
}

body.dark-mode .timeline-content p {
  color: #a0aec0;
}

/* Mobile styles */
@media (max-width: 768px) {
  .timeline-vertical {
    max-width: 90%;
    padding: 0 1rem;
  }
  
  .timeline-content {
    padding: 1.2rem 1.5rem;
  }
  
  .timeline-content h4 {
    font-size: 1.1rem;
  }

  .timeline-date {
    font-size: 1rem;
  }
}

/* University Logo Styles */
.university-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.university-header:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.university-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  padding: 0.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.university-header:hover .university-logo {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.university-header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
}

.course-name {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #1844e3 !important;
  margin: 0.5rem 0 !important;
  line-height: 1.4 !important;
}

.university-name {
  font-size: 1.1rem !important;
  color: #4a5568 !important;
  margin: 0.3rem 0 1rem 0 !important;
  font-weight: 500 !important;
}

.course-details {
  color: #4a5568 !important;
  line-height: 1.6 !important;
  font-size: 1rem !important;
  margin: 0 !important;
}

/* Dark mode styles */
body.dark-mode .university-header {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .university-header:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .university-logo {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .university-header h4 {
  color: #e2e8f0;
}

body.dark-mode .course-name {
  color: #4d7cff !important;
}

body.dark-mode .university-name {
  color: #a0aec0 !important;
}

body.dark-mode .course-details {
  color: #a0aec0 !important;
}

/* Mobile styles */
@media (max-width: 768px) {
  .timeline-content {
    padding: 1.2rem 1.5rem;
  }
  
  .university-header {
    padding: 0.6rem;
    gap: 1rem;
  }
  
  .university-logo {
    width: 50px;
    height: 50px;
  }
  
  .university-header h4 {
    font-size: 1.1rem;
  }
  
  .course-name {
    font-size: 1.2rem !important;
  }
  
  .university-name {
    font-size: 1rem !important;
  }
  
  .course-details {
    font-size: 0.95rem !important;
  }
}

/* ===== Footer ===== */
footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-radius: 20px;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.08);
  color: #232323;
  max-width: 80%;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
}

footer p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

footer a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #0077ff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* Dark mode */
body.dark-mode footer {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode footer p {
  color: #b3b3b3;
}

body.dark-mode footer a {
  color: #ffffff;
}

body.dark-mode footer a:hover {
  color: #4a9eff;
}

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

.project-link:hover {
  transform: scale(1.02);
}


/* ===== Fade-up Animation ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Dark Mode ===== */
body.dark-mode .headline-name,
body.dark-mode .headline-desc {
  color: #fff;
}

body.dark-mode footer {
  background: #222;
  border-top: 1px solid #444;
}

body.dark-mode .footer-contact a {
  color: #ccc;
}

/* ===== Responsive (Mobile) ===== */
@media (max-width: 768px) {
  .headline-name {
    font-size: 4rem;
    margin-top: 2rem;
    font-weight: 800;
  }

  .headline-desc {
    font-size: 1.4rem;
    max-width: 85vw;
    margin-top: 1.5rem;
    font-weight: 500;
  }

  .headline-desc strong {
    font-weight: 700;
  }

  .cover-content {
    max-width: 85vw;
    margin-left: 5vw;
    padding-top: 12vh;
    text-align: left;
  }

  .project-block {
    flex-direction: column;
    padding: 2em 4vw;
  }

  .project-img {
    height: 300px;
    width: 100%;
    aspect-ratio: 16/9;
  }

  .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .nav-container {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: relative;
  }

  .logo {
    width: 50px;
    flex: none;
  }

  .logo img {
    height: 40px;
  }

  .menu {
    display: none;
  }

  .toggle-right-controls {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    width: auto;
    justify-content: center;
  }

  .toggle-right-controls a {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hamburger {
    display: block;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.4rem;
    margin-right: 1rem;
  }

  .hamburger:hover {
  }

  #menu.show {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    background: rgba(25, 55, 109, 0.75);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1004;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #menu.show li {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #menu.show li a {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #ffffffcc;
    padding: 0.8rem 2rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.6rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }

  #menu.show li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 2px 12px rgba(255,255,255,0.2), inset 0 0 0 1px rgba(255,255,255,0.3);
  }

  /* Dark mode mobile adjustments */
  body.dark-mode .hamburger {
  }

  body.dark-mode .hamburger:hover {
  }

  body.dark-mode #menu.show {
    background: rgba(26, 26, 46, 0.85);
  }

  body.dark-mode #menu.show li a {
    color: #eeeeeecc;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  body.dark-mode #menu.show li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 12px rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.2);
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .close-btn {
    display: none;
  }

  #menu {
    display: flex !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: static;
    background: transparent;
    height: auto;
  }
}

/* Dark mode */
body.dark-mode .toggle-right-controls a {
  color: #b3b3b3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .toggle-right-controls a:hover,
body.dark-mode .toggle-right-controls a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.2);
}

body.dark-mode .menu li a,
body.dark-mode .toggle-right-controls a {
  color: #b3b3b3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .menu li a:hover,
body.dark-mode .menu li a.active,
body.dark-mode .toggle-right-controls a:hover,
body.dark-mode .toggle-right-controls a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.2);
}

/* ===== Desktop Navbar ===== */
@media (min-width: 769px) {
  .nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
  }

  .logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

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

  .toggle-right-controls {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
  }

  .hamburger {
    display: none;
  }
}

/* ===== Mobile Navbar ===== */
@media (max-width: 768px) {
  .nav-container {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: relative;
  }

  .logo {
    width: 50px;
    flex: none;
    z-index: 1002;
  }

  .logo img {
    height: 40px;
  }

  .menu {
    display: none;
  }

  .toggle-right-controls {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    z-index: 1002;
  }

  .toggle-right-controls a {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #ffffffcc;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.6rem;
    transition: all 0.25s ease;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }

  .toggle-right-controls a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 2px 12px rgba(255,255,255,0.2), inset 0 0 0 1px rgba(255,255,255,0.3);
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    z-index: 1002;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: auto;
    height: auto;
  }

  #menu.show {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    background: rgba(25, 55, 109, 0.75);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1004;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #menu.show li {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #menu.show li a {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #ffffffcc;
    padding: 0.8rem 2rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1.6rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }

  #menu.show li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 2px 12px rgba(255,255,255,0.2), inset 0 0 0 1px rgba(255,255,255,0.3);
  }

  body.dark-mode #menu.show {
    background: rgba(26, 26, 46, 0.85);
  }

  body.dark-mode #menu.show li a {
    color: #eeeeeecc;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  body.dark-mode #menu.show li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 12px rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.2);
  }
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 1rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-content {
  text-align: center;
}

.business-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(135deg, #1844e3, #4d7cff);
  padding: 2.5rem 2rem;
  color: white;
  text-align: left;
}

.profile-info h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.profile-info .title {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0.5rem 0 0;
  font-weight: 400;
}

.card-body {
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item:hover {
  background: rgba(24, 68, 227, 0.05);
}

.contact-item i {
  font-size: 1.5rem;
  color: #1844e3;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 68, 227, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.contact-item:hover i {
  background: rgba(24, 68, 227, 0.2);
  transform: scale(1.1);
}

.contact-info {
  text-align: left;
  flex: 1;
}

.contact-info strong {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.contact-link {
  color: #1844e3;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: #0d2b9e;
  text-decoration: underline;
}

.card-footer {
  padding: 1.5rem 2rem;
  background: rgba(24, 68, 227, 0.03);
  border-top: 1px solid rgba(24, 68, 227, 0.1);
  text-align: center;
}

.card-footer p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* Dark mode styles */
body.dark-mode .business-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .card-header {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

body.dark-mode .contact-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.dark-mode .contact-info strong {
  color: #999;
}

body.dark-mode .contact-link {
  color: #4d7cff;
}

body.dark-mode .contact-link:hover {
  color: #7d9fff;
}

body.dark-mode .card-footer {
  background: rgba(255, 255, 255, 0.02);
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .card-footer p {
  color: #999;
}

/* Mobile styles */
@media (max-width: 768px) {
  .contact-section {
    padding: 1rem 1rem;
  }
  
  .card-header {
    padding: 2rem 1.5rem;
  }
  
  .profile-info h3 {
    font-size: 1.8rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .contact-item {
    padding: 0.8rem;
    gap: 1rem;
  }
  
  .contact-item i {
    font-size: 1.3rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .card-footer {
    padding: 1.2rem 1.5rem;
  }
}

/* ===== Filter Buttons ===== */
.filter-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
  margin: 2.5rem 0;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #ffffffcc;
  padding: 0.8rem 1.8rem;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(24, 68, 227, 0.3), rgba(77, 124, 255, 0.3));
  border-radius: 2rem;
  transition: all 0.25s ease;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  border: none;
  outline: none;
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.filter-btn i {
  font-size: 1.2rem;
  opacity: 0.9;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(24, 68, 227, 0.4), rgba(77, 124, 255, 0.4));
  box-shadow: 0 2px 12px rgba(255,255,255,0.2), inset 0 0 0 1px rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.filter-btn:hover i,
.filter-btn.active i {
  opacity: 1;
  transform: scale(1.1);
}

/* Dark mode styles */
body.dark-mode .filter-btn {
  color: #b3b3b3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(255,255,255,0.1), inset 0 0 0 1px rgba(255,255,255,0.2);
}

/* Responsive styles */
@media (max-width: 1200px) {
  .filter-buttons {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .filter-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .filter-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin: 2rem 0;
    padding: 0 1rem;
  }

  .filter-btn {
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
  }

  .filter-btn i {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .filter-buttons {
    grid-template-columns: 1fr;
  }
}

.projects-section .section-title {
  font-size: 4.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #1844e3, #4d7cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.projects-section .section-subtitle {
  font-size: 1.6rem;
  font-weight: 400;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

body.dark-mode .projects-section .section-subtitle {
  color: #bbb;
}

@media (max-width: 768px) {
  .projects-section .section-title {
    font-size: 3.2rem;
    margin-bottom: 1rem;
  }

  .projects-section .section-subtitle {
    font-size: 1.3rem;
    padding: 0 1rem;
  }
}

/* ===== Back Button ===== */
.back-btn {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .back-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.dark-mode .back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-section .section-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, #1844e3, #4d7cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.contact-section .section-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

body.dark-mode .contact-section .section-subtitle {
  color: #bbb;
}

@media (max-width: 768px) {
  .contact-section .section-title {
    font-size: 2.8rem;
  }
  
  .contact-section .section-subtitle {
    font-size: 1.1rem;
  }
}

.about-intro {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.vision-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  overflow: hidden;
  transition: all 0.3s ease;
}

.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.card-content {
  padding: 2.5rem;
  display: flex;
  gap: 3rem;
  align-items: center;
}

#profile-pic-container {
  flex-shrink: 0;
}

#profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.intro-text {
  flex: 1;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5rem;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-text strong {
  color: #1844e3;
  font-weight: 600;
}

.intro-text em {
  font-style: italic;
  color: #666;
}

/* Dark mode styles */
body.dark-mode .vision-card {
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .vision-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .intro-text p {
  color: #e0e0e0;
}

body.dark-mode .intro-text strong {
  color: #4d7cff;
}

body.dark-mode .intro-text em {
  color: #aaa;
}

/* Mobile styles */
@media (max-width: 768px) {
  .about-intro {
    padding: 1rem;
  }

  .card-content {
    flex-direction: column;
    padding: 1.5rem;
    gap: 2rem;
    text-align: left;
  }

  #profile-pic {
    width: 160px;
    height: 160px;
  }

  .intro-text p {
    font-size: 1rem;
  }
}

.skills-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 600px;
  position: relative;
}

.skills-content .flourish-embed {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  overflow: hidden;
  transition: all 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.skills-content .flourish-embed:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Dark mode styles */
body.dark-mode .skills-content .flourish-embed {
  background: rgba(30, 30, 30, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .skills-content .flourish-embed:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Mobile styles */
@media (max-width: 768px) {
  .skills-content {
    max-width: 100%;
    padding: 0 1rem;
    height: 600px;
  }
}

.belief {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.belief-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  padding: 2.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.belief-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.belief-card p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

/* Dark mode styles */
body.dark-mode .belief-card {
  background: rgba(30, 30, 30, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .belief-card:hover {
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

body.dark-mode .belief-card p {
  color: #e0e0e0;
}

/* Mobile styles */
@media (max-width: 768px) {
  .belief {
    padding: 1rem;
  }

  .belief-card {
    padding: 1.5rem;
  }

  .belief-card p {
    font-size: 1.1rem;
  }
}

/* ===== Dark Mode Enhancements ===== */
body.dark-mode .project-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .project-block:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .project-info h2 {
  color: #ffffff;
}

body.dark-mode .project-info p {
  color: #b3b3b3;
}

body.dark-mode .section-title {
  color: #ffffff;
}

body.dark-mode .section-subtitle {
  color: #b3b3b3;
}

body.dark-mode .vision-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .vision-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .business-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .business-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .contact-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .contact-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.dark-mode .filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b3b3b3;
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body.dark-mode footer {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode footer p {
  color: #b3b3b3;
}

body.dark-mode footer a {
  color: #ffffff;
}

body.dark-mode footer a:hover {
  color: #4a9eff;
}

body.dark-mode .back-btn {
  color: #b3b3b3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .back-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .nav-container {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .menu li a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b3b3b3;
}

body.dark-mode .menu li a:hover,
body.dark-mode .menu li a.active {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body.dark-mode .toggle-right-controls a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b3b3b3;
}

body.dark-mode .toggle-right-controls a:hover {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* ===== Share Buttons ===== */
.share-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Share button specific styles */
.share-btn.twitter i {
  color: #1DA1F2 !important;
}

.share-btn.linkedin i {
  color: #0077B5 !important;
}

.share-btn.facebook i {
  color: #4267B2 !important;
}

.share-btn.wechat i {
  color: #07C160 !important;
}

/* Dark mode styles for share buttons */
body.dark-mode .share-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Keep icon colors in dark mode */
body.dark-mode .share-btn.twitter i {
  color: #1DA1F2 !important;
}

body.dark-mode .share-btn.linkedin i {
  color: #0077B5 !important;
}

body.dark-mode .share-btn.facebook i {
  color: #4267B2 !important;
}

body.dark-mode .share-btn.wechat i {
  color: #07C160 !important;
}

/* Project controls layout */
.project-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .project-controls {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

/* Back button style */
.back-btn {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .back-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.dark-mode .back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: #1844e3;
  transition: all 0.3s ease;
}

.back-to-top:hover svg {
  fill: #2C5EDB;
}

body.dark-mode .back-to-top svg {
  fill: #ffffff;
}

body.dark-mode .back-to-top:hover svg {
  fill: #4d7cff;
}

/* About Section Dark Mode */
body.dark-mode .about-section {
  background: transparent;
}

body.dark-mode .vision-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .vision-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .timeline-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .timeline-content:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .timeline-date {
  color: #a0a0a0;
}

body.dark-mode .divider {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== Project Image Container ===== */
.project-image-container {
  width: 100%;
  position: relative;
  padding-top: 60%; /* This creates a 5:3 aspect ratio (3/5 = 0.6 = 60%) */
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.project-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Dark mode styles */
body.dark-mode .project-image-container {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile styles */
@media (max-width: 768px) {
  .project-image-container {
    margin-bottom: 1rem;
  }
}

.back-btn svg {
  stroke: #1844e3;
  transition: stroke 0.3s ease;
}

body.dark-mode .back-btn svg {
  stroke: #ffffff;
}

/* ===== Modal and Gallery Styles ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
}

body.dark-mode .gallery-item .caption {
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Back to top button styles */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: #333333;
}

body.dark-mode .back-to-top {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .back-to-top:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .back-to-top svg {
  fill: #ffffff;
}

/* ===== Project Page Styles ===== */
.page-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 10px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Cookie Consent Notice */
.cookie-consent {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #333;
  padding: 1.5rem;
  z-index: 1000;
  border-radius: 16px;
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 90%;
  width: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5568;
}

.cookie-content a {
  color: #1844e3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cookie-content a:hover {
  color: #2C5EDB;
  text-decoration: underline;
}

.cookie-button {
  background: #1844e3;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-button:hover {
  background: #2C5EDB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 68, 227, 0.2);
}

.cookie-button:active {
  transform: translateY(0);
}

/* Dark mode styles */
body.dark-mode .cookie-consent {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

body.dark-mode .cookie-content p {
  color: #e2e8f0;
}

body.dark-mode .cookie-content a {
  color: #4d7cff;
}

body.dark-mode .cookie-content a:hover {
  color: #7d9fff;
}

body.dark-mode .cookie-button {
  background: #4d7cff;
}

body.dark-mode .cookie-button:hover {
  background: #7d9fff;
  box-shadow: 0 4px 12px rgba(77, 124, 255, 0.2);
}

/* Mobile styles */
@media (max-width: 480px) {
  .cookie-consent {
    bottom: 0;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 100%;
  }

  .cookie-content {
    padding: 0 0.5rem;
  }

  .cookie-button {
    width: 100%;
    justify-content: center;
  }
}

/* 移除返回按钮的下划线动画（全局） */
a.back-button::after {
  display: none !important;
}

