/* ===== GLOBAL STYLES ===== */
.hamburger { 
  display: none; 
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  scroll-behavior: smooth;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
  overflow-x: hidden;
}

/* ===== PARTICLE BACKGROUND ===== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
  background: transparent;
}

/* ===== LOADING ANIMATIONS ===== */
body.loaded .hero,
body.loaded .section,
body.loaded footer {
  animation: fadeInUp 1s ease both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(2vh);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3vw;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 999;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.nav-main {
  flex-shrink: 0;
}

.right-nav {
  display: flex;
  align-items: center;
  gap: 2vw;
  flex-shrink: 0;
  min-width: 0;
}

/* ===== LOGO ===== */
.logo {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #181c23;
  background: none;
  text-shadow: 0 4px 18px rgba(0,0,0,0.18);
  animation: logo-float 3.5s ease-in-out infinite alternate;
  transition: color 0.3s, font-size 0.2s, text-shadow 0.2s;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 3vw;
}

@keyframes logo-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-0.4vh) scale(1.03); }
  100% { transform: translateY(0); }
}

@media (max-width: 1080px) {
  .logo {
    font-size: 1.18rem;
    margin-right: 4vw;
    max-width: 60vw;
  }
}

/* ===== MENU ===== */
.menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.menu a:hover {
  color: #0077ff;
  background-color: rgba(0, 119, 255, 0.05);
}

.menu a.active {
  color: #0077ff;
  border-bottom: 2px solid #0077ff;
  background-color: rgba(0, 119, 255, 0.1);
  font-weight: 600;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1000;
  padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: none;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background-color: rgba(0, 119, 255, 0.1);
  color: #0077ff;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.8vh;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
  min-width: 3vw;
  min-height: 3vw;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle::after {
  content: "🌙";
  display: block;
  line-height: 1;
  font-size: inherit;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  background: none;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  color: #333;
}

.lang-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ===== DARK THEME ===== */
body.dark {
  background: #121212;
  color: #e0e0e0;
}

body.dark * {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.dark .nav {
  background: #1e1e1e;
  box-shadow: 0 2px 10px rgba(0,0,0,0.13);
}

body.dark .logo {
  color: #f3f6fa;
  background: none;
  text-shadow: 0 4px 24px rgba(0,0,0,0.38);
}

body.dark .menu a {
  color: #ccc;
}

body.dark .menu a:hover {
  color: #00cfff;
  background-color: rgba(0, 207, 255, 0.1);
}

body.dark .menu a.active {
  color: #00cfff;
  border-bottom: 2px solid #00cfff;
  background-color: rgba(0, 207, 255, 0.1);
}

body.dark .dropdown-menu {
  background: #2b2b2b;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark .dropdown-menu a {
  color: #ccc;
  background: #2b2b2b;
}

body.dark .dropdown-menu a:hover {
  background-color: rgba(0, 207, 255, 0.1);
  color: #00cfff;
}

body.dark .theme-toggle {
  color: #ccc;
}

body.dark .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark .theme-toggle::after {
  content: "☀️";
}

body.dark .lang-toggle {
  color: #ccc;
  border-color: #444;
}

body.dark .lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 2rem;
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

/* ===== BUTTONS ===== */
.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0077ff 0%, #0056b3 100%);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
  cursor: pointer;
  min-width: 160px;
  height: 48px;
  white-space: nowrap;
}

.buttons .btn-outline {
  background: transparent;
  color: #0077ff;
  border: 2px solid #0077ff;
  box-shadow: none;
}

body.dark .buttons .btn-outline {
  color: #00cfff;
  border-color: #00cfff;
}

body.dark .buttons .btn-outline:hover {
  background: rgba(0, 207, 255, 0.1);
}

.buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.4);
}

body.dark .buttons .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 207, 255, 0.4);
}

/* ===== SECTIONS ===== */
.section {
  padding: 4rem 2rem;
}

.section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 600;
}

.section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* ===== PROJECT GRID ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
}

.project-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-card h3 a:hover {
  color: #0077ff;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

body.dark .project-card {
  background: #1e1e1e;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark .project-card h3 a {
  color: #e0e0e0;
}

body.dark .project-card h3 a:hover {
  color: #00cfff;
}

/* ===== EDUCATION GRID ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.education-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.education-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.education-card h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
}

.institution, .year {
  color: #666;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.description {
  color: #0077ff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.course-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.course-list li {
  padding: 0.5rem 0;
  color: #555;
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
}

.course-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #0077ff;
  font-weight: bold;
}

/* ===== HOBBIES GRID ===== */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hobby-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.hobby-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.hobby-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.hobby-card h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
}

.hobby-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ===== DARK THEME CARD STYLES ===== */
body.dark .modal-content {
  background: #1e1e1e;
  color: #e0e0e0;
}

body.dark .modal-close {
  color: #e0e0e0;
}

body.dark .modal-content div[style*="color: #333"] {
  color: #e0e0e0 !important;
}

body.dark .modal-content div[style*="color: #666"] {
  color: #aaa !important;
}

body.dark .education-card {
  background: #1e1e1e;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark .institution {
  color: #aaa;
}

body.dark .year {
  color: #aaa;
}

body.dark .description {
  color: #00cfff;
}

body.dark .course-list li {
  color: #ccc;
}

body.dark .course-list li::before {
  color: #00cfff;
}

body.dark .education-card h3 {
  color: #e0e0e0;
}

body.dark .hobby-card {
  background: #1e1e1e;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark .hobby-card h3 {
  color: #e0e0e0;
}

body.dark .hobby-card p {
  color: #aaa;
}

/* ===== PDF MODAL ===== */
.pdf-container {
  max-width: 800px;
  margin: 0 auto;
}

.pdf-container .view-fullscreen {
  display: inline-block;
  padding: 10px 20px;
  background: #0077ff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.pdf-container .view-fullscreen:hover {
  background: #0056b3;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  margin: auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-content iframe {
  width: 100%;
  height: 70vh;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#pdf-canvas-container {
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
}

#pdf-canvas-container canvas {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 4px;
  margin-bottom: 20px;
}

body.dark #pdf-canvas-container {
  background: #2b2b2b;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
  z-index: 1001;
}

.modal-close:hover {
  color: #333;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  margin: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

body.dark footer {
  background: rgba(0,0,0,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ===== SOCIAL LINKS ===== */
.socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.socials a {
  padding: 12px 24px;
  background: linear-gradient(135deg, #0077ff 0%, #0056b3 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.socials a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.4);
}

body.dark .socials a {
  background: linear-gradient(135deg, #00cfff 0%, #0099cc 100%);
  box-shadow: 0 4px 15px rgba(0, 207, 255, 0.3);
}

body.dark .socials a:hover {
  box-shadow: 0 6px 20px rgba(0, 207, 255, 0.4);
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader span {
  font-size: 1.2rem;
  color: #0077ff;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
  
/* ===== RESPONSIVE DESIGN ===== */

/* Desktop Styles */
@media (min-width: 601px) {
  .nav {
    padding: 1rem 4vw;
  }
  
  .right-nav {
    gap: 1.5vw;
  }
  
  .menu {
    gap: 20px;
  }
}

/* Tablet Styles */
@media (max-width: 1080px) {
  .nav {
    padding: 1rem 4vw;
  }
  
  .right-nav {
    gap: 3vw;
  }
  
  /* Hide desktop menu and show hamburger */
  .menu {
    display: none;
  }
  
  .theme-toggle {
    display: none;
  }
  
  .lang-toggle {
    display: none;
  }
  
  .hero {
    padding: 1.5rem;
    margin: 15px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .avatar {
    width: 120px;
    height: 120px;
  }
  
  .buttons {
    gap: 0.8rem;
    margin: 1.5rem 0;
  }
  
  .buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 140px;
    height: 44px;
  }
  
  .section {
    padding: 3rem 1.5rem;
  }
  
  .section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }
  
  .project-card {
    padding: 1.5rem;
  }
  
  .modal-content iframe {
    height: 60vh;
  }
  
  .modal-content {
    width: 95%;
    padding: 15px;
  }
  
  .socials {
    gap: 1.5rem;
  }
  
  .socials a {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .education-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .hobbies-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .hobby-card {
    padding: 1.5rem;
  }
  
  .hobby-icon {
    font-size: 2.5rem;
  }
  
  .menu, .right-nav {
    gap: 2vw;
  }
  
  /* Mobile Navigation */
  .hamburger {
    display: flex !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
  }
  
  .hamburger span {
    width: 24px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
  }
  
  body.dark .hamburger span {
    background: #ccc;
  }
  
  .mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-nav.active {
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-nav nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    padding-top: 0.2rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .mobile-nav nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
  }
  
  .mobile-nav nav a:last-child {
    margin-bottom: 1rem;
  }
  
  .mobile-nav nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
  }
  
  .mobile-nav .theme-toggle, .mobile-nav .lang-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 250px;
    margin-top: 0.8rem;
  }
  
  .mobile-nav .theme-toggle {
    margin-bottom: 0.5rem;
  }
  
  .mobile-nav .theme-toggle:hover {
    background: rgba(255,255,255,0.2);
  }
  
  .mobile-nav .lang-toggle:hover {
    background: rgba(255,255,255,0.2);
  }
  
  .mobile-close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
  }
  
  .mobile-nav nav a + a {
    margin-top: 0.5rem;
  }
  
  body.dark .mobile-nav {
    background: rgba(0,0,0,0.98);
  }
  
  body.dark .mobile-nav nav a {
    background: rgba(255,255,255,0.05);
  }
  
  body.dark .mobile-nav nav a:hover {
    background: rgba(255,255,255,0.1);
  }
  
  body.dark .mobile-nav .theme-toggle, body.dark .mobile-nav .lang-toggle {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
  }
  
  body.dark .mobile-nav .theme-toggle {
    color: white;
  }
  
  body.dark .mobile-nav .theme-toggle:hover {
    background: rgba(255,255,255,0.1);
  }
  
  body.dark .mobile-nav .lang-toggle:hover {
    background: rgba(255,255,255,0.1);
  }
  
  body.no-scroll {
    overflow: hidden;
  }
}

/* Mobile Styles */
@media (max-width: 400px) {
  .nav {
    padding: 1rem 3vw;
  }
  
  .logo {
    font-size: 1rem;
    margin-right: 3vw;
  }
  
  .hamburger {
    width: 35px;
    height: 35px;
  }
  
  .hamburger span {
    width: 20px;
    height: 2px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .avatar {
    width: 100px;
    height: 100px;
  }
  
  .buttons {
    gap: 0.5rem;
    margin: 0.8rem 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  .buttons .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 120px;
    height: 40px;
    width: 100%;
    max-width: 180px;
  }
  
  .theme-toggle {
    min-width: 5vw;
    min-height: 5vw;
    font-size: 1rem;
  }
  
  .hobbies-grid {
    grid-template-columns: 1fr;
  }
  
  .hobby-icon {
    font-size: 2rem;
  }
  
  .hamburger {
    width: 32px;
    height: 32px;
  }
  
  .hamburger span {
    width: 18px;
    height: 2px;
  }
  
  .mobile-nav {
    padding: 1rem;
  }
  
  .mobile-close-btn {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .mobile-nav .theme-toggle, .mobile-nav .lang-toggle {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .mobile-nav {
    padding: 0;
  }
  
  .mobile-nav nav {
    padding: 1.5rem 1rem;
    gap: 1rem;
    max-height: 85vh;
  }
  
  .mobile-nav nav a {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }
  
  .mobile-nav .theme-toggle, .mobile-nav .lang-toggle {
    padding: 8px 12px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }
  
  .mobile-nav nav a {
    margin-bottom: 0.5rem;
  }
  
  .mobile-nav nav a:hover {
    transform: translateY(-1px);
  }
  
  .mobile-nav .theme-toggle, .mobile-nav .lang-toggle {
    margin-top: 0.5rem;
  }
  
  .mobile-nav .theme-toggle:hover {
    transform: translateY(-1px);
  }
  
  .mobile-nav .lang-toggle:hover {
    transform: translateY(-1px);
  }
}

/* Extra small mobile styles */
@media (max-width: 350px) {
  .mobile-nav nav {
    padding: 1rem 0.8rem;
    gap: 0.8rem;
    max-height: 80vh;
  }
  
  .mobile-nav nav a {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }
  
  .mobile-nav .theme-toggle, .mobile-nav .lang-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
    margin-top: 0.4rem;
  }
  
  .mobile-nav nav a:last-child {
    margin-bottom: 0.5rem;
  }
  
  .buttons {
    gap: 0.4rem;
    margin: 0.6rem 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  .buttons .btn {
    padding: 7px 14px;
    font-size: 0.8rem;
    min-width: 110px;
    height: 38px;
    width: 100%;
    max-width: 160px;
  }
  
  /* 确保第二个按钮与返回顶部按钮在视觉上对称 */
  .mobile-floating-buttons .mobile-floating-btn:last-child {
    margin-bottom: 0;
  }
}

/* ===== ABOUT CARD STYLES ===== */
.about-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 0 auto;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.about-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.about-subtitle {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
  margin: 0;
}

.about-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #444;
}

.about-strengths,
.about-hobbies {
  margin: 2rem 0;
}

.about-strengths h4,
.about-hobbies h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-strengths ul,
.about-hobbies ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.8rem;
}

.about-strengths li,
.about-hobbies li {
  padding: 0.8rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  color: #555;
  font-size: 0.95rem;
  position: relative;
  padding-left: 2rem;
  transition: all 0.2s ease;
}

.about-strengths li::before,
.about-hobbies li::before {
  content: "✓";
  position: absolute;
  left: 0.8rem;
  color: #0077ff;
  font-weight: bold;
  font-size: 1.1rem;
}

/* ===== WORK EXPERIENCE AND PROJECTS LIST STYLES ===== */
.project-card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.project-card ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #0077ff;
  font-weight: bold;
  font-size: 1rem;
}

.about-location {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.about-location p {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
  margin: 0;
  text-align: center;
  max-width: 100%;
  line-height: 1.6;
}

/* Dark theme for about card */
body.dark .about-card {
  background: #1e1e1e;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

body.dark .about-header h3 {
  color: #e0e0e0;
}

body.dark .about-subtitle {
  color: #e0e0e0;
}

body.dark .about-content p {
  color: #e0e0e0;
}

body.dark .about-strengths h4,
body.dark .about-hobbies h4 {
  color: #e0e0e0;
}

body.dark .about-strengths li,
body.dark .about-hobbies li {
  background: #2b2b2b;
  color: #e0e0e0;
}

body.dark .about-strengths li::before,
body.dark .about-hobbies li::before {
  color: #00cfff;
}

/* Dark theme for work experience and projects lists */
body.dark .project-card ul li::before {
  color: #00cfff;
}

body.dark .about-location p {
  color: #e0e0e0;
  text-align: center;
}

body.dark .about-header {
  border-bottom-color: #333;
}

body.dark .about-location {
  border-top-color: #333;
  text-align: center;
}

@media (max-width: 1080px) {
  .about-card {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .about-location {
    text-align: center;
    padding: 1rem 0;
  }
  
  .about-location p {
    text-align: center;
    font-size: 0.95rem;
  }
}

/* ===== DARK THEME HERO ===== */
body.dark .avatar {
  border-color: #333;
}

body.dark .hero,
body.dark .hero:hover {
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.2) 100%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

body.dark .hero:hover {
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.3) 100%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

body.dark .btn {
  background: linear-gradient(135deg, #00cfff 0%, #0099cc 100%);
  box-shadow: 0 4px 15px rgba(0, 207, 255, 0.3);
}

body.dark .btn:hover {
  box-shadow: 0 6px 20px rgba(0, 207, 255, 0.4);
}

body.dark .btn-outline {
  color: #00cfff;
  border-color: #00cfff;
}

body.dark .btn-outline:hover {
  background: rgba(0, 207, 255, 0.1);
}

.hero,
.hero:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.hero:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

body.dark .hero:hover {
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.3) 100%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ===== THEME TOGGLE RESPONSIVE ===== */
@media (max-width: 600px) {
  .nav .theme-toggle {
    min-width: 6vw;
    min-height: 6vw;
  }
}

header.nav > .theme-toggle {
  display: none;
}

@media (min-width: 1081px) {
  .mobile-theme-toggle {
    display: none;
  }
  
  .mobile-lang-toggle {
    display: none;
  }
}

/* ===== LANGUAGE TOGGLE STYLES ===== */
.lang-toggle {
  background: none;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  color: #333;
}

.lang-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.dark .lang-toggle {
  color: #ccc;
  border-color: #444;
}

body.dark .lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== PROJECT SPECIFIC STYLES ===== */
.lsdm-project {
  border-left: 4px solid #0077ff;
}

.tolitd-project {
  border-left: 4px solid #ff6b6b;
}

.lsdm-project h3, .tolitd-project h3 {
  color: #333;
}

.lsdm-project h3 a, .tolitd-project h3 a {
  color: inherit;
}

.lsdm-project h3 a:hover, .tolitd-project h3 a:hover {
  color: #0077ff;
}

.lsdm-project ul li, .tolitd-project ul li, .lsdm-project p, .tolitd-project p {
  color: #555;
}

@media (max-width: 900px) {
  .lsdm-project, .tolitd-project {
    border-left: none;
    border-top: 4px solid;
  }
  
  .lsdm-project {
    border-top-color: #0077ff;
  }
  
  .tolitd-project {
    border-top-color: #ff6b6b;
  }
}

@media (max-width: 600px) {
  .lsdm-project, .tolitd-project {
    padding: 1rem;
  }
  
  .lsdm-project h3, .tolitd-project h3 {
    font-size: 1.1rem;
  }
  
  .lsdm-project ul, .tolitd-project ul {
    padding-left: 1rem;
  }
}

.lsdm-project, .tolitd-project {
  transition: all 0.3s ease;
}

.lsdm-project:hover, .tolitd-project:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== CARD HOVER EFFECTS ===== */
.project-card, .about-card, .education-card, .hobby-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.project-card:hover, .about-card:hover, .education-card:hover, .hobby-card:hover,
.project-card.card-hover, .about-card.card-hover, .education-card.card-hover, .hobby-card.card-hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-hover a, .card-hover h3, .card-hover h4, .card-hover p, .card-hover li {
  transition: all 0.3s ease;
}

body.dark .card-hover, body.dark .project-card.card-hover, body.dark .about-card.card-hover, body.dark .education-card.card-hover, body.dark .hobby-card.card-hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

body.dark .card-hover a, body.dark .card-hover h3, body.dark .card-hover h4, body.dark .card-hover p, body.dark .card-hover li {
  transition: all 0.3s ease;
}

body.dark .lsdm-project {
  border-left-color: #00cfff;
}

body.dark .tolitd-project {
  border-left-color: #ff8a80;
}

/* ===== PROJECT CARD TITLE STYLES ===== */
.project-card h3, .education-card h3, .hobby-card h3, .about-header h3, .lsdm-project h3, .tolitd-project h3 {
  transition: color 0.3s ease;
}

body.dark .project-card h3, body.dark .education-card h3, body.dark .hobby-card h3, body.dark .about-header h3, body.dark .lsdm-project h3, body.dark .tolitd-project h3 {
  color: #e0e0e0;
}

.project-card.card-hover h3, .project-card.card-hover h3 a {
  color: #0077ff !important;
}

body.dark .project-card.card-hover h3, body.dark .project-card.card-hover h3 a {
  color: #00cfff !important;
}

.project-card h3, .project-card h3 a {
  color: #333;
}

body.dark .project-card h3, body.dark .project-card h3 a {
  color: #e0e0e0;
}

.project-card.card-hover h3, .project-card.card-hover h3 a {
  color: #0077ff;
}

body.dark .project-card.card-hover h3, body.dark .project-card.card-hover h3 a {
  color: #00cfff;
}

/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.7);
  color: #0077ff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

#backToTop svg {
  width: 100%;
  height: 100%;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: rgba(0, 119, 255, 0.8);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.5);
}

body.dark #backToTop {
  background: rgba(0, 207, 255, 0.7);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 207, 255, 0.3);
}

body.dark #backToTop:hover {
  background: rgba(0, 153, 204, 0.8);
  box-shadow: 0 6px 20px rgba(0, 207, 255, 0.4);
}

@media (max-width: 600px) {
  .mobile-floating-buttons {
    bottom: 20px;
    left: 20px;
    gap: 12px;
  }
  
  .mobile-floating-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  /* 确保第二个按钮与返回顶部按钮在视觉上对称 */
  .mobile-floating-buttons .mobile-floating-btn:last-child {
    margin-bottom: 0;
  }
}

body.dark #backToTop svg path {
  stroke: #000;
}

/* ===== MOBILE FLOATING BUTTONS ===== */
.mobile-floating-buttons {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.mobile-floating-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.7);
  color: #0077ff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
}

.mobile-floating-btn:hover {
  background: rgba(0, 119, 255, 0.8);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.5);
}

body.dark .mobile-floating-btn {
  background: rgba(0, 207, 255, 0.7);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 207, 255, 0.3);
}

body.dark .mobile-floating-btn:hover {
  background: rgba(0, 153, 204, 0.8);
  box-shadow: 0 6px 20px rgba(0, 207, 255, 0.4);
}

/* Hide on desktop */
@media (min-width: 1081px) {
  .mobile-floating-buttons {
    display: none;
  }
}

/* ===== PROJECT CARD TIP ===== */
.project-card {
  position: relative;
}

.card-tip {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 119, 255, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.project-card:hover .card-tip {
  opacity: 1;
  transform: translateY(0);
}

body.dark .card-tip {
  background: rgba(0, 207, 255, 0.9);
}

body.dark .project-card:hover .card-tip {
  background: rgba(0, 207, 255, 0.9);
}

/* ===== YEAR SPAN STYLES ===== */
.year span {
  color: #0077ff;
  font-weight: 600;
}

/* ===== PROJECT CARD ENHANCEMENTS ===== */
.project-card {
  border: 1px solid rgba(0,0,0,0.1);
}

.hobby-card {
  border: 1px solid rgba(0,0,0,0.1);
}

/* ===== SKILLS SECTION STYLES ===== */
#skills .about-card,
#languages .about-card {
  max-width: 800px;
}

#skills .about-card h3,
#languages .about-card h3 {
  display: none;
}

/* ===== PROJECT IMAGE STYLES ===== */
.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* ===== PROJECT CARD TITLE RESPONSIVE ===== */
.project-card h3,
.education-card h3,
.hobby-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #333;
  transition: color 0.3s ease;
}

/* Fix project card title height for image alignment */
.project-card h3 {
  min-height: 3.6rem; /* 2 lines of text (1.3rem * 1.4 * 2) */
  display: flex;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .project-card h3,
  .education-card h3,
  .hobby-card h3 {
    font-size: 1.2rem;
  }
  
  .project-card h3 {
    min-height: 3.4rem; /* 2 lines of text (1.2rem * 1.4 * 2) */
  }
}

@media (max-width: 600px) {
  .project-card h3,
  .education-card h3,
  .hobby-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  
  .project-card h3 {
    min-height: 2.9rem; /* 2 lines of text (1.1rem * 1.3 * 2) */
  }
  
  .about-location {
    text-align: center;
    padding: 0.8rem 0;
  }
  
  .about-location p {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .buttons {
    gap: 0.6rem;
    margin: 1rem 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  
  .buttons .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 120px;
    height: 40px;
    width: 100%;
    max-width: 200px;
  }
}

/* ===== PROJECT CARD LIST STYLES ===== */
.project-card ul, .lsdm-project ul, .tolitd-project ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

@media (max-width: 600px) {
  .project-card ul, .lsdm-project ul, .tolitd-project ul {
    margin: 0.8rem 0 0 0;
  }
}

/* ===== PROJECT CARD PARAGRAPH STYLES ===== */
.project-card,
.education-card,
.hobby-card {
  position: relative;
  overflow: hidden;
}

.project-card ul,
.education-card ul,
.hobby-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.project-card p,
.education-card p,
.hobby-card p {
  margin: 0.5rem 0;
  color: #666;
  line-height: 1.6;
}  