:root {
  --primary-color: #2563eb;
  --primary-color-dark: #1a56db;
  --primary-color-light: #7bb0ff;
  --primary-color-xlight: #e8f0fe;
  --primary-color-gradient: linear-gradient(90deg,#2563eb 60%,#1a56db 100%);
  --primary-color-gradient-hover: linear-gradient(90deg,#1a56db 60%,#2563eb 100%);
}

/* ====== CSS RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f6f8fa;
  color: #1a202c;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}
body.dark-theme {
  background: #181c24;
  color: #e6eaf3;
  --primary-color: #2563eb;
  --primary-color-dark: #3b82f6;
  --primary-color-light: #7bb0ff;
  --primary-color-xlight: #1e2633;
  --primary-color-gradient: linear-gradient(90deg,#2563eb 60%,#3b82f6 100%);
  --primary-color-gradient-hover: linear-gradient(90deg,#3b82f6 60%,#2563eb 100%);
}
body.dark-theme .sidebar {
  background: rgba(35, 42, 54, 0.92);
  border-right: 1px solid #232a1a;
  box-shadow: 2px 0 24px rgba(0,0,0,0.18);
  overflow-y: auto;
  max-height: 100vh;
}
body.dark-theme .profile-photo {
  background: #232a36;
  border-color: var(--primary-color);
}
body.dark-theme .sidebar h1 {
  color: #fff;
}
body.dark-theme .sidebar-role {
  color: #7bb0ff;
}
body.dark-theme .sidebar-social a {
  color: #7bb0ff;
}
body.dark-theme .sidebar-social a:hover {
  color: #fff;
}
body.dark-theme .cv-btn {
  background: linear-gradient(90deg, var(--primary-color) 60%, var(--primary-color-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.18);
}
body.dark-theme .cv-btn:hover {
  background: linear-gradient(90deg, var(--primary-color-dark) 60%, var(--primary-color) 100%);
}
body.dark-theme .sidebar-nav a {
  color: #e6eaf3;
}
body.dark-theme .sidebar-nav a.active,
body.dark-theme .sidebar-nav a:hover {
  background: var(--primary-color);
  color: #fff;
}
body.dark-theme #theme-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #232a1a;
  border: none;
  border-radius: 50%;
  color: var(--primary-color-light);
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  margin: 0;
}
body.dark-theme #theme-toggle:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.14);
  transform: scale(1.08);
}
body.dark-theme #theme-toggle i {
  pointer-events: none;
}
body.dark-theme .main-content {
  background: none;
}
body.dark-theme .section h2 {
  color: var(--primary-color-light);
}
body.dark-theme .content-card,
body.dark-theme .experience-card,
body.dark-theme .project-card {
  background: #232a36;
  color: #e6eaf3;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
body.dark-theme .experience-card,
body.dark-theme .project-card {
  border-left: 5px solid var(--primary-color);
}
body.dark-theme .exp-header h3,
body.dark-theme .project-card h3 {
  color: var(--primary-color-light);
}
body.dark-theme .exp-date {
  color: #a3c9ff;
}
body.dark-theme .experience-card h4,
body.dark-theme .project-card h3 {
  color: #fff;
}
body.dark-theme .experience-card p,
body.dark-theme .project-card p {
  color: #c7d0e0;
}
body.dark-theme .exp-logo img,
body.dark-theme .project-logo img {
  background: #181c24;
}
body.dark-theme .skills-badges .badge,
body.dark-theme .project-badges .badge {
  background: #2d241a;
  color: var(--primary-color-light);
  box-shadow: 0 1px 4px rgba(37,99,235,0.10);
}
body.dark-theme .badge:hover,
body.dark-theme .language-badges .badge:hover {
  background: #2563eb;
  color: #fff;
}
body.dark-theme .form-group label {
  color: var(--primary-color-light);
}
body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
  background: #232a36;
  color: #e6eaf3;
  border-color: #232a36;
  box-shadow: 0 1px 4px rgba(37,99,235,0.10);
}
body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
body.dark-theme .submit-btn {
  background: linear-gradient(90deg, var(--primary-color) 60%, var(--primary-color-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.18);
}
body.dark-theme .submit-btn:hover {
  background: linear-gradient(90deg, var(--primary-color-dark) 60%, var(--primary-color) 100%);
}
body.dark-theme footer {
  background: none;
}
body.dark-theme .footer-content {
  color: #7bb0ff;
}
body.dark-theme .social-links a {
  color: var(--primary-color-light);
}
body.dark-theme .social-links a:hover {
  color: #fff;
}
body, .sidebar, .content-card, .experience-card, .project-card, .form-group input, .form-group textarea, .badge, .cv-btn, .submit-btn {
  transition: background 0.3s, color 0.3s, border 0.3s, box-shadow 0.3s;
}

/* ====== SIDEBAR (GLASSMORPHISM) ====== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100vh;
  min-height: 100vh;
  background: rgba(255,255,255,0.85);
  box-shadow: 2px 0 24px rgba(37,99,235,0.07);
  backdrop-filter: blur(12px);
  border-right: 1px solid #e3e8ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1001;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  justify-content: flex-start;
  padding-bottom: 2.5rem;
  overflow-y: auto;
  max-height: 100vh;
}
.sidebar-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  flex: 1 1 auto;
  padding-bottom: 2.5rem;
}
.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 12px rgba(37,99,235,0.10);
  background: #fff;
}
.sidebar h1 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 0.2rem;
  letter-spacing: -1px;
}
.sidebar-role {
  color: #2563eb;
  font-size: 1.08rem;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.sidebar-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.sidebar-social a {
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: color 0.2s, transform 0.2s;
}
.sidebar-social a:hover {
  color: #b26a00;
  transform: scale(1.15);
}
.cv-btn {
  background: var(--primary-color-gradient);
  color: #fff;
  font-weight: 600;
  border-radius: 2rem;
  padding: 0.55rem 1.3rem;
  text-decoration: none;
  margin: 1rem 0 1.5rem 0;
  font-size: 1rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}
.cv-btn:hover {
  background: var(--primary-color-gradient-hover);
  box-shadow: 0 4px 16px rgba(37,99,235,0.14);
  transform: translateY(-2px) scale(1.04);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1.5rem;
}
.sidebar-nav a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  padding: 0.7rem 1.1rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
  text-align: left;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}
.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: var(--primary-color);
  color: #fff;
}
#theme-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f6f8fa;
  border: none;
  border-radius: 50%;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  margin: 0;
}
#theme-toggle:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.14);
  transform: scale(1.08);
}
#theme-toggle i {
  pointer-events: none;
}
@media (max-width: 600px) {
  #theme-toggle {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    margin: 0;
    box-shadow: 0 1px 4px rgba(37,99,235,0.08);
  }
  body.dark-theme #theme-toggle {
    box-shadow: 0 1px 4px rgba(37,99,235,0.08);
  }
}

/* ====== MAIN CONTENT ====== */
.main-content {
  margin-left: 270px;
  padding: 3rem 3rem 2rem 3rem;
  max-width: 950px;
}
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    min-height: 60px;
    flex-direction: row;
    box-shadow: 0 2px 12px rgba(37,99,235,0.07);
    padding: 0;
    border-right: none;
    border-bottom: 1px solid #e3e8ee;
    backdrop-filter: blur(6px);
    z-index: 1002;
    align-items: stretch;
    justify-content: flex-start;
    padding-bottom: 0;
  }
  #sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    height: 60px;
    width: 60px;
    cursor: pointer;
    z-index: 2001;
  }
  .sidebar-content {
    position: fixed;
    top: 60px;
    left: 0;
    width: 80vw;
    max-width: 320px;
    height: calc(100vh - 60px);
    min-height: calc(100vh - 60px);
    background: rgba(255,255,255,0.97);
    box-shadow: 2px 0 24px rgba(37,99,235,0.07);
    border-right: 1px solid #e3e8ee;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    z-index: 1002;
    overflow-y: auto;
    justify-content: flex-start;
    padding-bottom: 2.5rem;
  }
  .sidebar-content.open {
    transform: translateX(0);
  }
  .profile-photo, .sidebar h1, .sidebar-role, .sidebar-contact, .cv-btn {
    display: none;
  }
  .sidebar-nav {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  .sidebar-social {
    gap: 1.5rem;
    margin-bottom: 1rem;
  }
  .main-content {
    margin-left: 0;
    padding: 1.5rem 0.5rem;
  }
  #theme-toggle {
    margin-top: auto;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 600px) {
  .sidebar-content {
    width: 100vw;
    max-width: 100vw;
    padding: 1.2rem 1rem 1rem 1rem;
  }
}

.section {
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(.4,0,.2,1);
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: -1px;
}
.home-section {
  margin-top: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}
.home-section h2 {
  font-size: 2.7rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 0.5rem;
  letter-spacing: -1.5px;
}
.home-section .highlight {
  color: var(--primary-color);
}
.home-section .role {
  color: #2563eb;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.home-section .bio {
  font-size: 1.13rem;
  color: #444;
  max-width: 600px;
}
.content-card {
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 4px 24px rgba(37,99,235,0.07);
  padding: 2rem;
  margin-bottom: 1rem;
}

/* ====== EXPERIENCE & PROJECTS ====== */
.experience-list, .projects-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 700px) {
  .projects-list {
    grid-template-columns: 1fr 1fr;
  }
}
.experience-card, .project-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 4px 24px rgba(37,99,235,0.07);
  padding: 1.5rem 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
  border-left: 5px solid var(--primary-color);
  position: relative;
}
.experience-card:hover, .project-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}
.exp-logo img, .project-logo img {
  width: 48px;
  height: 48px;
  border-radius: 0.7rem;
  background: #f3f4f6;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.exp-content, .project-card > div:last-child {
  flex: 1;
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.exp-header h3 {
  font-size: 1.18rem;
  color: var(--primary-color);
  margin: 0;
  font-weight: 700;
}
.exp-date {
  font-size: 0.98rem;
  color: #a3c9ff;
  font-weight: 600;
}
.experience-card h4, .project-card h3 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: #222;
  font-size: 1.08rem;
}
.experience-card p, .project-card p {
  margin: 0;
  color: #444;
  font-size: 1.04rem;
}

/* ====== BADGES ====== */
.skills-badges, .project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.badge, .language-badges .badge {
  background: #e8f0fe;
  color: #2563eb;
  font-size: 0.97rem;
  font-weight: 600;
  border-radius: 1.2rem;
  padding: 0.32rem 1.05rem;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(37,99,235,0.06);
  transition: background 0.2s, color 0.2s;
}
.badge:hover, .language-badges .badge:hover {
  background: #2563eb;
  color: #fff;
}
body.dark-theme .badge, body.dark-theme .language-badges .badge {
  background: #fff !important;
  color: #2563eb !important;
}
body.dark-theme .badge:hover, body.dark-theme .language-badges .badge:hover {
  background: #2563eb !important;
  color: #fff !important;
}

/* ====== CONTACT FORM ====== */
.contact-form {
  display: grid;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-weight: 600;
  color: var(--primary-color);
}
.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 1.5px solid #e3e8ee;
  border-radius: 0.6rem;
  background-color: #fff;
  color: #222;
  font-size: 1.05rem;
  transition: border 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.10);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.submit-btn {
  background: linear-gradient(90deg,var(--primary-color) 60%,#b26a00 100%);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.6rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.08rem;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}
.submit-btn:hover {
  background: linear-gradient(90deg,#b26a00 60%,var(--primary-color) 100%);
  transform: translateY(-2px) scale(1.03);
}

/* ====== FOOTER ====== */
footer {
  background: none;
  padding: 2rem 0 0 0;
  margin-top: 2rem;
}
.footer-content {
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888;
  font-size: 0.97rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: color 0.2s, transform 0.2s;
}
.social-links a:hover {
  color: #b26a00;
  transform: scale(1.15);
}

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

/* ====== UTILITY ====== */
.highlight {
  color: var(--primary-color);
}

body.dark-theme .home-section h2 {
  color: #fff;
}
body.dark-theme .home-section .role {
  color: #7bb0ff;
}
body.dark-theme .home-section .bio {
  color: #c7d0e0;
}
body.dark-theme .content-card {
  background: #232a36;
  color: #e6eaf3;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
body.dark-theme .contact-form {
  background: none;
}
body.dark-theme .form-group label {
  color: #ffb74d;
}
body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
  background: #232a36;
  color: #e6eaf3;
  border-color: #232a36;
  box-shadow: 0 1px 4px rgba(37,99,235,0.10);
}
body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
body.dark-theme .submit-btn {
  background: linear-gradient(90deg,var(--primary-color) 60%,#ffa726 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.18);
}
body.dark-theme .submit-btn:hover {
  background: linear-gradient(90deg,#ffa726 60%,var(--primary-color) 100%);
}
.home-section h2, .home-section .role, .home-section .bio, .content-card, .form-group input, .form-group textarea, .submit-btn {
  transition: background 0.3s, color 0.3s, border 0.3s, box-shadow 0.3s;
}

.sidebar-contact {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.contact-item:hover {
  color: var(--primary-color);
}

.contact-item i {
  width: 1.2rem;
  color: var(--primary-color);
}

.dark-theme .contact-item {
  color: var(--text-color-dark);
}

.dark-theme .contact-item:hover {
  color: var(--primary-color);
}

/* ====== CONTACT FORM ====== */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-details h3 {
  font-size: 1.5rem;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-method i {
  font-size: 1.3rem;
  color: #2563eb;
  margin-top: 0.2rem;
}

.contact-method h4 {
  font-size: 1.1rem;
  color: #2563eb;
  margin-bottom: 0.3rem;
}

.contact-method a,
.contact-method p {
  color: #444;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.contact-method a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Dark theme styles for contact section */
body.dark-theme .contact-details h3 {
  color: #7bb0ff;
}

body.dark-theme .contact-details p {
  color: #c7d0e0;
}

body.dark-theme .contact-method h4 {
  color: #7bb0ff;
}

body.dark-theme .contact-method a,
body.dark-theme .contact-method p {
  color: #c7d0e0;
}

body.dark-theme .contact-method a:hover {
  color: #ffb74d;
}

body.dark-theme .contact-method i {
  color: #7bb0ff;
}

#sidebar-toggle {
  display: none;
}

/* ====== LOBBY SECTION ====== */
.lobby-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.lobby-card {
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 4px 24px rgba(37,99,235,0.07);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  border-left: 5px solid var(--primary-color);
}
.lobby-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}
.lobby-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.lobby-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.18rem;
  color: var(--primary-color);
  font-weight: 700;
}
.lobby-card p {
  color: #444;
  font-size: 1.04rem;
}
@media (max-width: 600px) {
  .lobby-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .lobby-card {
    padding: 1.2rem 1rem 1rem 1rem;
  }
}
body.dark-theme .lobby-card {
  background: #232a36;
  color: #e6eaf3;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  border-left: 5px solid #2563eb;
}
body.dark-theme .lobby-icon {
  color: #7bb0ff;
}
body.dark-theme .lobby-card h3 {
  color: #7bb0ff;
}
body.dark-theme .lobby-card p {
  color: #c7d0e0;
}

.language-card {
  background: #f6f8fa;
  border-radius: 0.8rem;
  padding: 1.1rem 1.2rem 1rem 1.2rem;
  margin-top: 1.2rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.language-card h4 {
  font-size: 1.08rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.language-badges {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.language-badges .badge {
  font-size: 1.01rem;
  background: #e8f0fe;
  color: #2563eb;
  border-radius: 1.2rem;
  padding: 0.32rem 1.05rem;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(37,99,235,0.06);
  display: flex;
  align-items: center;
  gap: 0.4em;
}
body.dark-theme .language-card {
  background: #232a36;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
body.dark-theme .language-card h4 {
  color: #ffb74d;
}
body.dark-theme .language-badges .badge {
  background: #fff;
  color: #2563eb;
}
.language-badges .badge:hover {
  background: var(--primary-color);
  color: #fff;
}
body.dark-theme .language-badges .badge:hover {
  background: #ffb74d;
  color: #232a36;
}

.contact-popup {
  position: fixed;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 90vw;
  z-index: 2000;
  background: #fff;
  color: #222;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(37,99,235,0.13);
  padding: 1.3rem 2rem;
  font-size: 1.08rem;
  text-align: center;
  border-left: 5px solid var(--primary-color);
  cursor: pointer;
  transition: opacity 0.3s, top 0.3s;
}
.popup-success {
  color: var(--primary-color);
}
.popup-error {
  color: #e53e3e;
}
body.dark-theme .contact-popup {
  background: #232a36;
  color: #e6eaf3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border-left: 5px solid #ffb74d;
}
body.dark-theme .popup-success {
  color: #ffb74d;
}
body.dark-theme .popup-error {
  color: #ff6b6b;
}

.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .sidebar-content {
    display: none;
  }
  #sidebar-toggle {
    display: flex;
  }
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(35,42,54,0.97);
    z-index: 3001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 2.5rem;
  }
  .mobile-menu .sidebar-nav {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
  }
  .mobile-menu .sidebar-nav a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    background: none;
    border-radius: 0.5rem;
    padding: 0.7rem 1.1rem;
    transition: background 0.2s, color 0.2s;
  }
  .mobile-menu .sidebar-nav a.active,
  .mobile-menu .sidebar-nav a:hover {
    background: var(--primary-color);
    color: #fff;
  }
  .mobile-menu .sidebar-social {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
  }
  .mobile-menu .sidebar-social a {
    color: #7bb0ff;
    font-size: 2rem;
    transition: color 0.2s, transform 0.2s;
  }
  .mobile-menu .sidebar-social a:hover {
    color: #fff;
    transform: scale(1.15);
  }
}

a.experience-card,
a.experience-card:visited,
a.project-card,
a.project-card:visited {
  text-decoration: none;
  color: inherit;
  display: flex;
}

body.dark-theme .badge,
body.dark-theme .language-badges .badge {
  background: #fff !important;
  color: #2563eb !important;
}
