/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #f7faff 0%, #e3e6f3 100%);
  color: #222;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2a4d8f;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #2a4d8f;
}
#darkModeToggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}
.hero-section {
  background: linear-gradient(120deg, #6c63ff 0%, #007bff 100%);
  color: #fff;
  padding: 4.5rem 0 2.5rem 0;
  text-align: center;
  position: relative;
}
.profile-card {
  width: 150px;
  height: 150px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(76, 78, 100, 0.18), 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -90px auto 1.2rem auto;
  position: relative;
  z-index: 2;
  border: 5px solid #6c63ff;
}
.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e3e6f3;
}
.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.hero-section h1 span {
  background: linear-gradient(90deg, #ffb347 0%, #43e97b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-block;
  background: #2a4d8f;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.btn:hover {
  background: #1e355e;
}
.resume-btn {
  display: inline-block;
  margin-right: 1.5rem;
  padding: 0.5rem 1.2rem;
  background: #007bff;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.resume-btn:hover {
  background: #0056b3;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.6rem 1.6rem;
  background: linear-gradient(90deg, #6c757d 0%, #495057 100%);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  box-shadow: 0 4px 16px rgba(76, 78, 100, 0.10), 0 1.5px 4px rgba(0,0,0,0.08);
  border: 2px solid #e2e6ea;
  letter-spacing: 0.02em;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s, border 0.3s;
  cursor: pointer;
}
.back-btn svg {
  margin-right: 8px;
  flex-shrink: 0;
}
.back-btn:hover {
  background: linear-gradient(90deg, #ff0022 0%, #6c757d 100%);
  box-shadow: 0 8px 24px rgba(76, 78, 100, 0.18), 0 2px 8px rgba(0,0,0,0.12);
  transform: translateY(-2px) scale(1.05);
  border: 2px solid #adb5bd;
}
section {
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  padding: 2.2rem 2.2rem 2rem 2.2rem;
  border-radius: 1.2rem;
  box-sizing: border-box;
}
section h2 {
  margin-bottom: 1rem;
  color: #2a4d8f;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}
.skills-list li {
  background: #e0e7ff;
  color: #2a4d8f;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
}
.work-item {
  margin-bottom: 1.5rem;
}
.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-section input,
.contact-section textarea {
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 1rem;
}
.contact-section button[type="submit"] {
  background: #2a4d8f;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 2rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.contact-section button[type="submit"]:hover {
  background: #1e355e;
}
.contact-info p {
  margin-bottom: 0.5rem;
}
.footer {
  text-align: center;
  padding: 1.5rem 0;
  background: #f0f4ff;
  color: #2a4d8f;
  font-size: 1rem;
  margin-top: 2rem;
}
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  backdrop-filter: blur(2px);
}
.custom-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  z-index: 1001;
  min-width: 300px;
  text-align: center;
}
.modal-content button {
  margin-top: 1.2rem;
  padding: 0.5rem 1.5rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-content button:hover {
  background: #0056b3;
}
body.modal-open > *:not(.modal-overlay):not(.custom-modal) {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}
.about-section p,
.skills-section ul,
.work-section ul,
.education-section ul,
.languages-section ul,
.certificates-section ul,
.courses-section ul,
.contact-section .contact-info,
.contact-section form {
  text-align: justify;
}
.contact-flex {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.contact-info {
  flex: 1 1 250px;
  max-width: 320px;
}
#contactForm {
  flex: 2 1 350px;
  max-width: 500px;
}
@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  .contact-info, #contactForm {
    max-width: 100%;
  }
  section, .glass-bg {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    max-width: 98vw;
  }
  .profile-card {
    width: 100px;
    height: 100px;
    margin: -50px auto 1rem auto;
  }
  .profile-img {
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  section, .glass-bg {
    padding: 0.7rem 0.3rem 0.7rem 0.3rem;
    margin: 0 auto 1.2rem auto;
  }
  .skills-list {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-section {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .section-accent {
    top: 1rem;
    bottom: 1rem;
    width: 4px;
  }
  .profile-card {
    width: 100px;
    height: 100px;
    margin: -50px auto 1rem auto;
  }
  .profile-img {
    width: 80px;
    height: 80px;
  }
}
body.dark {
  background: #181a1b;
  color: #f7f9fb;
}
body.dark .header,
body.dark section {
  background: #23272f;
  color: #f7f9fb;
}
body.dark .footer {
  background: #23272f;
  color: #e0e7ff;
}
body.dark .skills-list li {
  background: #2a4d8f;
  color: #e0e7ff;
}
body.dark .btn,
body.dark .contact-section button[type="submit"] {
  background: #e0e7ff;
  color: #2a4d8f;
}
body.dark .btn:hover,
body.dark .contact-section button[type="submit"]:hover {
  background: #b6c6f5;
} 
html {
  scroll-behavior: smooth;
}
.alt-bg {
  background: #f7faff;
}
.glass-bg {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(76, 78, 100, 0.10), 0 1.5px 4px rgba(0,0,0,0.08);
  margin: 0 auto 2rem auto;
  padding: 2.2rem 2.2rem 2rem 2.2rem;
  max-width: 900px;
}
.svg-divider {
  width: 100vw;
  overflow: hidden;
  line-height: 0;
  margin: 0;
}
.svg-divider svg {
  display: block;
  width: 100vw;
  height: 100px;
}
.svg-divider.flip svg {
  transform: scaleY(-1);
}
.section-title-accent {
  display: inline-block;
  width: 48px;
  height: 5px;
  background: linear-gradient(90deg, #007bff 0%, #6c63ff 100%);
  border-radius: 2px;
  margin-left: 0.7rem;
  vertical-align: middle;
} 
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(76, 78, 100, 0.07);
  z-index: 100;
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #222;
}
.header-nav {
  display: flex;
  gap: 1.1rem;
}
.header-btn {
  display: inline-block;
  padding: 0.5rem 1.3rem;
  background: #f4f7fe;
  color: #222;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(76, 78, 100, 0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  border: none;
  outline: none;
}
.header-btn.primary {
  background: linear-gradient(90deg, #007bff 0%, #6c63ff 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(76, 78, 100, 0.10);
}
.header-btn.resume {
  background: #2563eb;
  color: #fff;
}
.header-btn:hover, .header-btn:focus {
  background: #e3e6f3;
  color: #007bff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(76, 78, 100, 0.13);
}
.header-btn.primary:hover, .header-btn.primary:focus {
  background: linear-gradient(90deg, #2563eb 0%, #6c63ff 100%);
  color: #fff;
}
.header-btn.resume:hover, .header-btn.resume:focus {
  background: #007bff;
  color: #fff;
}
@media (max-width: 700px) {
  .header-content {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.7rem 0.7rem;
  }
  .header-nav {
    gap: 0.5rem;
  }
} 
.icon {
  display: inline-block;
  font-size: 1.15em;
  margin-right: 0.5em;
  vertical-align: middle;
  color: #2563eb;
  opacity: 0.85;
} 
.skills-subtitle {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.2rem 0 1.1rem 0;
  color: #222;
  letter-spacing: 0.01em;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem 1.3rem;
  margin-bottom: 1.5rem;
}
.skill-card {
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(76, 78, 100, 0.07);
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 90px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.skill-card:hover {
  box-shadow: 0 6px 24px rgba(76, 78, 100, 0.13);
  transform: translateY(-2px) scale(1.03);
}
.skill-icon {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  opacity: 0.95;
}
.skill-title {
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
  color: #222;
}
.skill-desc {
  font-size: 0.97rem;
  color: #6c757d;
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .skills-subtitle {
    font-size: 1.08rem;
    margin: 1.2rem 0 0.7rem 0;
  }
} 