/* * {
  outline: 1px solid red; --> Temporarily see which element overflows
} */

:root {
  /* Light Mode Colors */

  /* All primary color buttons - deep indigo to violet */
  --primary-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  /* All secondary color text - warm gold to amber */
  --secondary-gradient: linear-gradient(135deg, #f6a623 0%, #e8650a 100%);
  /* All skills button in home section - teal to cyan */
  --accent-gradient: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  /* Main heading text color - rich indigo to violet to gold */
  --text-gradient: linear-gradient(
    135deg,
    #1a1a2e 0%,
    #4f46e5 50%,
    #f6a623 100%
  );
  /* Background gradient for hero sections or full-page backgrounds */
  --bg-gradient: linear-gradient(
    135deg,
    #1a1a2e 0%,
    #4f46e5 25%,
    #0d9488 50%,
    #f6a623 75%,
    #e8650a 100%
  );

  /* Main background odd color */
  --bg-color: #f8f7f4;
  /* Main background even color */
  --surface-color: #ffffff;
  /* Hii i am & more sub-heading color */
  --text-primary: #0f0e17;
  /* Secondary text color for paragrapgh content */
  --text-secondary: #4a4a5a;
  /* Border color of header and footer */
  --border-color: #e8e4dc;

  /* Shadows */

  /* Small shadow used for buttons or small elements */
  --shadow-sm: 0 1px 2px 0 rgba(15, 14, 23, 0.06);
  /* Medium shadow for cards or raised elements */
  --shadow-md: 0 4px 6px -1px rgba(15, 14, 23, 0.12);
  /* Large shadow for modals, big cards, etc. */
  --shadow-lg: 0 10px 15px -3px rgba(15, 14, 23, 0.12);
  /* Extra large shadow for prominent or floating UI elements */
  --shadow-xl: 0 20px 25px -5px rgba(15, 14, 23, 0.15);

  /* Spacing */

  /* Padding around the main container (e.g., page wrapper) */
  --container-padding: 2rem;
  /* Vertical padding for full-width sections like hero, about, etc. */
  --section-padding: 5rem 0;
}

[data-theme="dark"] {
  /* Main background odd color */
  --bg-color: #060610;
  /* Main background even color */
  --surface-color: #0d0d1f;
  /* Hii i am & more sub-heading color */
  --text-primary: #f0eefc;
  /* Secondary text color for paragrapgh content */
  --text-secondary: #8b8ca8;
  /* Border color of header and footer */
  --border-color: #1e1e3a;

  /* Adjusted shadows with more opacity for visibility on dark backgrounds */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  transition: all 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

[data-theme="dark"] body {
  background-color: var(--bg-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  box-sizing: border-box;
}

/* Gradient Text */
.gradient-text {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(6, 6, 16, 0.95);
  border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
  background: rgba(248, 247, 244, 0.98);
  box-shadow: 0 2px 10px rgba(15, 14, 23, 0.08);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(6, 6, 16, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--container-padding);
}

.nav-logo {
  font-size: 1.6rem;
  font-weight: 900;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin-right: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 900;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 0.5rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--secondary-gradient);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(246, 166, 35, 0.4);
}

.nav-link.active::after {
  width: 100%;
  box-shadow: 0 0 15px rgba(246, 166, 35, 0.7);
}

.nav-link:hover::after {
  width: 100%;
  box-shadow: 0 0 15px rgba(246, 166, 35, 0.7);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: var(--secondary-gradient);
  border: 2px solid #0f0e17;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(246, 166, 35, 0.3);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(246, 166, 35, 0.6);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.theme-icon {
  font-size: 1.2rem;
  font-weight: 500;
}

.hamburger i {
  font-size: 2rem;
  font-weight: 500;
}

/* Home Section */
.home-section {
  padding: calc(80px + 5rem) 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1;
  color: var(--text-primary);
}

.home-name {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.typing-container {
  font-size: 1.9rem;
  margin-bottom: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
}

.typing-text {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.cursor {
  color: var(--text-primary);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.skills-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.skill-tag {
  background: var(--accent-gradient);
  color: rgb(255, 255, 255);
  padding: 0.45rem 0.85rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.social-btn i {
  font-size: 25px;
  color: #f0eefc;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.5);
}

/* Hero Animation */
.home-right {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 0;
  padding-left: 2rem;
}

.animation {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 400px;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform: translateX(3rem);
}

.animation:hover {
  transform: translateX(3rem) scale(1.05);
}

/* About Section */
.about-section {
  padding: var(--section-padding);
  background: var(--surface-color);
}

[data-theme="dark"] .about-section {
  background: var(--surface-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.profile-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.profile-image {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid transparent;
  background: var(--secondary-gradient);
  padding: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(246, 166, 35, 0.5);
  animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 20px rgba(246, 166, 35, 0.3);
  }
  to {
    box-shadow: 0 0 60px rgba(246, 166, 35, 0.7);
  }
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
}

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

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.gradient-btn {
  background: var(--secondary-gradient);
  color: rgb(255, 255, 255);
  border: none;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.gradient-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246, 166, 35, 0.4);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(15, 14, 23, 0.06);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(79, 70, 229, 0.15);
  transition: all 0.3s ease;
}

[data-theme="dark"] .stat-item {
  background: rgba(240, 238, 252, 0.04);
  border: 1px solid rgba(240, 238, 252, 0.08);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.about-section .stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-section .stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Portfolio Section */
.portfolio-section {
  padding: var(--section-padding);
}

[data-theme="dark"] .portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  background: rgba(240, 238, 252, 0.07);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.5rem;
  border: 1px solid rgba(240, 238, 252, 0.12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.5rem;
  border: 1px solid rgba(15, 14, 23, 0.1);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  box-shadow: 0 4px 15px rgba(15, 14, 23, 0.08);
}

[data-theme="dark"] .tab-btn {
  background: transparent;
  border: none;
  padding: 1rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  color: rgba(240, 238, 252, 0.7);
  flex: 1;
  text-align: center;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 1rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  color: #4a4a5a;
  flex: 1;
  text-align: center;
}

[data-theme="dark"] .tab-btn.active {
  background: var(--secondary-gradient);
  color: rgb(255, 255, 255);
  box-shadow: 0 0 20px rgba(246, 166, 35, 0.3);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: rgb(255, 255, 255);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.25);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(79, 70, 229, 0.1);
  transition: all 0.3s ease;
  margin-top: 2rem;
  margin-bottom: 2.2rem;
  margin-left: 0.7rem;
  margin-right: 0.7rem;
}

[data-theme="dark"] .project-card {
  background: rgba(240, 238, 252, 0.04);
  border: 1px solid rgba(240, 238, 252, 0.08);
}

.profile-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.project-image {
  position: relative;
  overflow: hidden;
}

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

[data-theme="dark"] .project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 6, 16, 0.6);
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 14, 23, 0.25);
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

a.project-btn {
  background: var(--secondary-gradient);
  color: rgb(255, 255, 255);
  border: none;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
}

a.project-btn:hover {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.project-details-btn {
  text-align: right;
  margin-top: 10px;
}

.details-btn {
  padding: 8px 16px;
  background: var(--secondary-gradient);
  color: rgb(255, 255, 255);
  text-decoration: none;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

a.details-btn:hover {
  transform: scale(1.05);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.certificate-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: block;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 14, 23, 0.1);
  text-decoration: none;
  margin-bottom: 2.5rem;
}

.certificate-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.certificate-img-wrapper:hover img {
  transform: scale(1.05);
}

/* Hover Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 13, 31, 0.75);
  color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay i {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.overlay p {
  font-size: 1.1rem;
  font-weight: 700;
}

.certificate-img-wrapper:hover .overlay {
  opacity: 1;
}

.certificate-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(79, 70, 229, 0.1);
  transition: all 0.3s ease;
}

[data-theme="dark"] .certificate-card {
  background: rgba(240, 238, 252, 0.04);
  border: 1px solid rgba(240, 238, 252, 0.08);
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  background: var(--secondary-gradient);
  color: white;
}

.certificate-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.skill-item {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(79, 70, 229, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 1.8rem;
}

[data-theme="dark"] .skill-item {
  background: rgba(240, 238, 252, 0.04);
  border: 1px solid rgba(240, 238, 252, 0.08);
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px #f6a623);
  transition: all 0.3s ease;
}

.skill-item span {
  font-weight: 800;
}

.show-more-btn {
  display: block;
  margin: 2rem auto 0;
  padding: 0.7rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--secondary-gradient);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.show-more-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(246, 166, 35, 0.4);
}

.show-more-btn i {
  margin-left: 8px;
  vertical-align: middle;
  font-size: 1.2rem;
}

.grid-wrapper {
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.grid-wrapper.collapsed {
  max-height: 0;
}

/* Professional Profile Section */
.professional-profile-section {
  padding: var(--section-padding);
  background: var(--surface-color);
}

[data-theme="dark"] .professional-profile-section {
  background: var(--surface-color);
}

.profile-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

[data-theme="dark"] .profile-card {
  background: rgba(240, 238, 252, 0.04);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(240, 238, 252, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-card {
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(79, 70, 229, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.profile-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.github-icon {
  background: transparent;
}

.leetcode-icon {
  background: transparent;
}

.profile-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.username {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.status {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  display: inline-block;
}

.status.active {
  background: rgba(13, 148, 136, 0.15);
  color: #0d9488;
}

.status.expert {
  background: rgba(246, 166, 35, 0.15);
  color: #e8650a;
}

.profile-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: rgba(15, 14, 23, 0.06);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  flex: 1;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

[data-theme="dark"] .stat-box {
  background: rgba(240, 238, 252, 0.04);
  border: 1px solid rgba(240, 238, 252, 0.08);
}

.stat-box.solved {
  background: rgba(13, 148, 136, 0.06);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

[data-theme="dark"] .stat-box.solved {
  background: rgba(13, 148, 136, 0.08);
}

.professional-profile-section .stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: #4f46e5 !important;
  margin-bottom: 0.25rem;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

[data-theme="dark"] .professional-profile-section .stat-number {
  color: #a5b4fc !important;
}

[data-theme="dark"] .stat-label {
  font-size: 0.9rem;
  color: rgba(240, 238, 252, 0.7);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: rgb(74, 74, 90);
}

.languages {
  margin-bottom: 2rem;
}

.language-item {
  margin-bottom: 1rem;
}

.language-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.language-name {
  font-weight: 600;
  color: var(--text-primary);
}

[data-theme="dark"] .language-percent {
  color: rgba(240, 238, 252, 0.8);
}

.language-percent {
  color: #4a4a5a;
  font-weight: 500;
}

[data-theme="dark"] .language-bar {
  height: 6px;
  background: rgba(240, 238, 252, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.language-bar {
  height: 6px;
  background: rgba(15, 14, 23, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.language-progress {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.difficulty-stats {
  margin-bottom: 2rem;
}

.difficulty-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  font-weight: 900;
}

.difficulty-item.easy {
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.difficulty-item.easy .difficulty-count {
  color: #0d9488;
}

.difficulty-item.medium {
  background: rgba(246, 166, 35, 0.08);
  border: 1px solid rgba(246, 166, 35, 0.2);
}

.difficulty-item.medium .difficulty-count {
  color: #f6a623;
}

.difficulty-item.hard {
  background: rgba(232, 101, 10, 0.08);
  border: 1px solid rgba(232, 101, 10, 0.2);
}

.difficulty-item.hard .difficulty-count {
  color: #e8650a;
}

.difficulty-label {
  color: var(--text-primary);
}

.profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.github-btn {
  background: linear-gradient(135deg, #1a1a2e 0%, #374151 100%);
  color: white;
}

.github-btn:hover {
  background: linear-gradient(135deg, #374151 0%, #1a1a2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 26, 46, 0.4);
}

.leetcode-btn {
  background: var(--secondary-gradient);
  color: white;
}

.leetcode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(246, 166, 35, 0.4);
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.connect-section {
  margin-top: 2rem;
  text-align: left;
}

.connect-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.social-connect {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.connect-btn {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0;
  background: var(--primary-gradient);
  color: rgb(240, 238, 252);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.25);
  font-weight: 800;
}

.connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.5);
}

.connect-icon {
  font-size: 1.5rem;
}

[data-theme="dark"] .contact-form {
  background: rgba(240, 238, 252, 0.04);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(240, 238, 252, 0.08);
}

.contact-form {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .form-group ::placeholder {
  color: rgba(240, 238, 252, 0.5);
}

.form-group ::placeholder {
  color: #7a7a90;
  font-weight: 500;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(240, 238, 252, 0.1);
  border-radius: 10px;
  background: rgba(240, 238, 252, 0.06);
  backdrop-filter: blur(10px);
  color: #f0eefc;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(79, 70, 229, 0.15);
  border-radius: 10px;
  background: rgb(241, 239, 248);
  backdrop-filter: blur(10px);
  color: rgb(15, 14, 23);
  font-family: inherit;
  font-weight: 600;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: transparent;
  border-radius: 5px;
  border-image: var(--secondary-gradient) 1;
  box-shadow: 0 0 0 3px rgba(246, 166, 35, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--surface-color);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 3rem 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-center {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    justify-content: center;
    margin-right: 0;
  }

  .nav-center.active {
    left: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .home-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-section,
  .portfolio-section,
  .contact-section,
  .testimonials-section {
    width: 100%;
  }

  .container {
    width: 100%;
    padding: 0 1rem;
  }

  .home-title,
  .home-name {
    font-size: 2.5rem;
  }

  .typing-container {
    font-size: 1.3rem;
  }

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

  .skills-container {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .skill-tag {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }

  .social-links {
    justify-content: center;
  }

  .animation {
    height: 460px;
    margin-top: 0;
    justify-content: center;
    transform: none;
  }

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

  /* Override the inline 550px lottie size */
  .animation lottie-player {
    width: 100% !important;
    max-width: 460px !important;
    height: 460px !important;
  }

  .home-right {
    padding-right: 0;
    justify-content: center;
  }

  /* Prevent text overflow in home section */
  .home-left {
    overflow: hidden;
    width: 100%;
  }

  .home-name,
  .home-title {
    font-size: 2rem;
    word-break: break-word;
  }

  .typing-container {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
  }

  .action-buttons {
    align-items: center;
  }

  .action-buttons {
    flex-direction: column;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .project-card {
    margin-bottom: 2.1rem;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .profile-card {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(79, 70, 229, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  [data-theme="dark"] .profile-card {
    border: 1px solid rgba(240, 238, 252, 0.08);
  }

  .profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
  }

  .profile-cards-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-info h3 {
    font-size: 2rem;
  }

  .social-connect {
    gap: 1.5rem;
    justify-content: center;
  }

  .contact-form {
    background: rgba(255, 255, 255, 0.5);
  }

  [data-theme="dark"] .contact-form {
    background: rgba(240, 238, 252, 0.03);
  }

  .footer-content {
    justify-content: center;
  }

  .footer-links {
    display: none;
  }
}
