* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #444 0%, #222 50%, #000 100%);
  --accent-gradient: linear-gradient(135deg, #666 0%, #333 100%);
  --warm-gradient: linear-gradient(135deg, #555 0%, #222 100%);
  --cool-gradient: linear-gradient(135deg, #aaa 0%, #777 100%);
  --dark-gradient: linear-gradient(135deg, #111 0%, #333 100%);
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --primary-blue: #444;
  --accent-purple: #555;
  --accent-pink: #777;
  --accent-cyan: #999;
  --text-primary: #111;
  --text-secondary: #666;
  --surface-light: #ffffff;
  --surface-elevated: #f0f0f0;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f5f5f5 0%, #dcdcdc 50%, #ffffff 100%);
  min-height: 100vh;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex: 1;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.nav-links {
  flex: 2;
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar::after {
  content: "";
  flex: 1;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.login-btn {
  background: none;
  border: none;
  color: #666;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.create-profile-btn {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.create-profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.hero-section {
  margin-top: 0;
  position: relative;
  min-height: 90vh;
  padding-top: 3rem;
  padding-bottom: 2rem;
  background: url("heroblackandwhite1.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(50, 50, 50, 0.85) 0%,
    rgba(20, 20, 20, 0.85) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

@keyframes heroGlow {
  0% {
    filter: brightness(1) saturate(1);
  }
  100% {
    filter: brightness(1.1) saturate(1.2);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  padding: 0 4rem 0 2rem;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  max-width: 550px;
}

.profile-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
}

.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.profile-photo:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.name-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.name-section h1 {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-align: center;
}

.title-location {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.title-location i {
  color: rgba(255, 255, 255, 0.8);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.contact-btn {
  background: var(--warm-gradient);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.contact-popup.show {
  display: flex;
}
.contact-popup.show .popup-content {
  transform: scale(3);
}

.popup-content {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: fit-content;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.popup-content .close-popup {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #333;
}

.popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #333;
  color: #333;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.popup-btn:hover {
  background: #333;
  color: #fff;
}

.popup-btn i {
  font-size: 1.2rem;
}

.sidebar-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--accent-purple);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.main-content {
  margin-left: 250px;
  padding: 2rem;
  margin-top: 0;
}

.section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

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

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

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

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 600;
  background: var(--dark-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.section:hover .section-title::after {
  width: 120px;
}

.section-title i {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.summary-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.websites-section {
  margin-bottom: 2rem;
}

.website-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.website-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s;
}

.website-link:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(10px) translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.website-link:hover::before {
  left: 100%;
}

.website-link:hover .website-icon {
  transform: scale(1.2) rotate(10deg);
  background: var(--accent-gradient);
}

.website-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  aspect-ratio: 1;
  background: var(--dark-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Responsive grid improvements */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
  }

  .certification-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .certification-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover .skill-icon {
  transform: rotate(360deg) scale(1.1);
  background: var(--warm-gradient);
}

.skill-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.skill-text {
  font-weight: 500;
  color: #333;
}

/* Skill Popup */
.skill-popup {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  transform: scale(0.8);
}

.skill-popup.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.skill-popup-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.skill-popup-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.skill-popup-text {
  font-weight: 500;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.5;
}

.work-history {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.job-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.job-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.9);
  border-left-color: var(--accent-purple);
}

.job-card:hover .company-icon {
  transform: scale(1.05);
}

.job-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.company-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.job-info h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.company-name {
  color: #666;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.job-period {
  color: #888;
  font-size: 0.9rem;
}

.show-description {
  background: var(--cool-gradient);
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.show-description::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.show-description:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.show-description:hover::before {
  left: 100%;
}

.job-details {
  margin-top: 1.5rem;
  display: none;
}

.job-details.show {
  display: block;
}

.job-details h4 {
  color: var(--primary-blue);
  margin: 1.5rem 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.job-details ul {
  list-style: none;
  padding-left: 0;
}

.job-details li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 1.5rem;
}

.job-details li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

.job-details li:last-child {
  border-bottom: none;
}

.education-item {
  margin-bottom: 2rem;
}

.education-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  border-left: 4px solid var(--primary-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.education-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-left-color: var(--accent-cyan);
}

.education-icon {
  width: 50px;
  height: 50px;
  background: var(--cool-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.education-header:hover .education-icon {
  transform: scale(1.1) rotate(10deg);
}

.education-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.institution-name {
  color: #666;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.education-period {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.education-status {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.education-status.completed {
  background: #ddd;
  color: #333;
}

.certification-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #ccc;
}

.certification-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.certification-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  padding: 1.5rem;
  border-left: 4px solid #999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.certification-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  border-left-color: var(--accent-pink);
}

.certification-card:hover .cert-icon {
  transform: scale(1.05);
}

.cert-icon {
  width: 40px;
  height: 40px;
  background: var(--warm-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cert-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.cert-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.cert-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #333;
  font-weight: 500;
}

.cert-status.in-progress {
  background: #eee;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.certification-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(245, 245, 245, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-radius: 15px;
  border-left: 4px solid var(--primary-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.certification-note:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.certification-note i {
  color: var(--primary-blue);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.certification-note p {
  color: var(--primary-blue);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.short-cv-section {
  text-align: center;
  margin: 2rem 0;
}

.short-cv-btn {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.short-cv-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.short-cv-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.short-cv-btn:hover::before {
  left: 100%;
}

@media (max-width: 1024px) {
  .sidebar-nav {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    height: auto;
    padding: 2rem 0 2rem;
    min-height: 70vh;
  }

  .hero-content {
    padding: 0 1rem;
    gap: 2rem;
  }

  .profile-section {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }

  .profile-photo {
    width: 180px;
    height: 180px;
  }

  .name-section h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
    white-space: normal;
    text-align: center;
  }

  .title-location {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .main-content {
    margin-top: 0;
    padding: 1rem;
  }

  .section {
    padding: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .job-header {
    flex-direction: column;
    text-align: left;
  }

  .job-info {
    text-align: left;
  }

  .job-info h3 {
    text-align: left;
  }

  .company-name {
    text-align: left;
  }

  .job-period {
    text-align: left;
  }

  /* Fix contact popup scaling on mobile */
  .contact-popup.show .popup-content {
    transform: scale(1);
  }

  .popup-content {
    padding: 1.5rem;
    width: 90%;
    max-width: 300px;
  }

  .popup-btn {
    width: 50px;
    height: 50px;
  }

  .popup-btn i {
    font-size: 1.5rem;
  }
}

/* Small mobile phones */
@media (max-width: 480px) {
  .hero-section {
    padding: 1rem 0 2rem;
    min-height: 60vh;
  }

  .profile-section {
    padding: 1.5rem 1rem;
    max-width: 95%;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .name-section h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    line-height: 1.2;
  }

  .contact-btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  .section {
    padding: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .certification-grid {
    grid-template-columns: 1fr;
  }

  /* Contact popup for small mobiles */
  .popup-content {
    padding: 1rem;
    width: 85%;
    max-width: 280px;
  }
}

/* Very small screens */
@media (max-width: 375px) {
  .profile-section {
    padding: 1rem;
    margin: 0 0.5rem;
  }

  .profile-photo {
    width: 130px;
    height: 130px;
  }

  .name-section h1 {
    font-size: clamp(1.6rem, 10vw, 2rem);
  }

  .section-title {
    font-size: 1.5rem;
  }

  .main-content {
    padding: 0.5rem;
  }

  /* Contact popup for very small screens */
  .popup-content {
    padding: 0.8rem;
    width: 90%;
    max-width: 260px;
  }

  .popup-btn {
    width: 45px;
    height: 45px;
  }

  .popup-btn i {
    font-size: 1.3rem;
  }
}

/* Mobile Navigation System */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  padding: 8px;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2001;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Show hamburger on mobile */
@media (max-width: 1024px) {
  .hamburger-btn {
    display: flex;
  }

  /* Mobile sidebar overlay */
  .sidebar-nav {
    position: fixed;
    left: -100%;
    top: 0;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    transition: left 0.3s ease;
    z-index: 2000;
    padding-top: 4rem;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  /* Show sidebar when menu is checked */
  .mobile-menu-toggle:checked ~ .sidebar-nav {
    left: 0;
  }

  /* Animate hamburger to X when checked */
  .mobile-menu-toggle:checked + .hamburger-btn .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: #fff;
  }

  .mobile-menu-toggle:checked + .hamburger-btn .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle:checked + .hamburger-btn .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: #fff;
  }

  .mobile-menu-toggle:checked + .hamburger-btn {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px;
  }

  /* Close menu when clicking navigation links */
  .sidebar-nav a {
    color: #fff;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    -webkit-touch-callout: none;
    touch-action: manipulation;
  }
}

/* Typography and Spacing Optimizations for Mobile */
@media (max-width: 768px) {
  /* Improve section title responsiveness */
  .section-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 1.5rem;
  }

  /* Better body text readability */
  .summary-text {
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.7;
  }

  /* Improve job card typography */
  .job-info h3 {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    line-height: 1.3;
  }

  .company-name {
    font-size: clamp(0.9rem, 2.8vw, 1rem);
  }

  .job-period {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  }

  /* Better skill item spacing */
  .skill-item {
    padding: 1.2rem 1rem;
  }

  .skill-text {
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    line-height: 1.4;
  }

  /* Improve education section typography */
  .education-info h3 {
    font-size: clamp(1rem, 3.2vw, 1.3rem);
  }

  .institution-name {
    font-size: clamp(0.85rem, 2.6vw, 0.95rem);
  }

  /* Better button typography */
  .show-description {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    padding: 0.7rem 1.3rem;
  }
}

@media (max-width: 480px) {
  /* Further optimize for small screens */
  .section-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    margin-bottom: 1rem;
  }

  .skill-item {
    padding: 1rem 0.8rem;
  }

  .job-card {
    padding: 1.5rem;
  }

  .job-header {
    gap: 1rem;
  }

  .company-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  /* Better spacing for job details */
  .job-details h4 {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    margin: 1rem 0 0.8rem 0;
  }

  .job-details li {
    padding: 0.4rem 0 0.4rem 2rem;
    font-size: clamp(0.85rem, 2.7vw, 0.95rem);
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  /* Fix checkmark overlap at very narrow widths */
  .job-details li {
    padding-left: 2.5rem;
  }
}

@media (max-width: 375px) {
  /* Minimal spacing for very small screens */
  .section {
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: clamp(1.1rem, 6vw, 1.4rem);
    gap: 0.7rem;
  }

  .skill-item,
  .job-card {
    padding: 1rem 0.8rem;
  }

  .education-header {
    padding: 1rem;
  }

  /* Additional spacing for very narrow screens */
  .job-details li {
    padding-left: 3rem;
  }
}

/* Touch Targets and Accessibility Improvements */
@media (max-width: 768px) {
  /* Ensure minimum 44px touch targets */
  .contact-btn {
    min-height: 44px;
    padding: 0.8rem 2rem;
  }

  .short-cv-btn {
    min-height: 44px;
    padding: 1rem 2.5rem;
  }

  .show-description {
    min-height: 44px;
    padding: 0.8rem 1.5rem;
  }

  .sidebar-nav a {
    min-height: 44px;
    padding: 1rem;
    display: flex;
    align-items: center;
  }

  .hamburger-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 7px;
  }

  /* Better focus states for accessibility */
  .contact-btn:focus,
  .short-cv-btn:focus,
  .show-description:focus {
    outline: 3px solid #333;
    outline-offset: 2px;
  }

  .sidebar-nav a:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  /* Improve interactive spacing */
  .sidebar-nav li {
    margin-bottom: 0.3rem;
  }

  /* Better visual feedback for touch */
  .skill-item:active,
  .job-card:active {
    transform: translateY(-2px) scale(0.98);
  }

  .contact-btn:active,
  .short-cv-btn:active,
  .show-description:active {
    transform: translateY(0) scale(0.95);
  }
}

@media (max-width: 480px) {
  /* Larger touch targets for small screens */
  .popup-btn {
    min-width: 48px;
    min-height: 48px;
    margin: 0.3rem;
  }

  .contact-btn,
  .short-cv-btn {
    min-height: 48px;
  }

  .hamburger-btn {
    min-height: 48px;
    min-width: 48px;
    padding: 9px;
  }

  /* Better spacing between interactive elements */
  .skills-grid {
    gap: 1.2rem;
  }

  .job-card {
    margin-bottom: 1.5rem;
  }

  /* Improve tap feedback */
  .sidebar-nav a:active {
    background: rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 375px) {
  /* Maximum accessibility for very small screens */
  .hamburger-btn {
    min-height: 50px;
    min-width: 50px;
    top: 0.8rem;
    left: 0.8rem;
  }

  /* Ensure adequate spacing */
  .popup-content {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .popup-btn {
    min-width: 50px;
    min-height: 50px;
  }
}
