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

:root {
  /* Light Mode Colors */

  /* All purple color buttons */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  /* All pink & red color text */
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  /* All skills button in home section */
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #667eea 100%);
  /* Main heading text color */
  --text-gradient: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 50%,
    #f093fb 100%
  );
  /* Background gradient for hero sections or full-page backgrounds */
  --bg-gradient: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #4facfe 75%,
    #00f2fe 100%
  );

  /* Main background odd color */
  --bg-color: #f9f9f9;
  /* Main background even color */
  --surface-color: #ffffff;
  /* Hii i am & more sub-heading color */
  --text-primary: #000000;
  /* Secondary text color for paragrapgh content */
  --text-secondary: #424242;
  /* Border color of header and footer */
  --border-color: #e2e8f0;

  /* Shadows */

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

  /* 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: #0f0f23;
  /* Main background even color */
  --surface-color: #1a1a2e;
  /* Hii i am & more sub-heading color */
  --text-primary: #ffffff;
  /* Secondary text color for paragrapgh content */
  --text-secondary: #a0aec0;
  /* Border color of header and footer */
  --border-color: #2d3748;

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

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

html {
  scroll-behavior: smooth;
}

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;
}

[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, 250, 252, 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(15, 15, 35, 0.95);
  border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.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(--primary-gradient);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.nav-link.active::after {
  width: 100%;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
}

.nav-link:hover::after {
  width: 100%;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
}

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

.theme-toggle {
  background: var(--primary-gradient);
  border: 2px solid #000000;
  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(102, 126, 234, 0.3);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.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: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  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: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.skill-tag {
  background: var(--accent-gradient);
  color: rgb(0, 0, 0);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  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(102, 126, 234, 0.3);
}

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

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

/* Hero Animation */
.animation {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.animation:hover {
  transform: 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(--primary-gradient);
  padding: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
  animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
  }
  to {
    box-shadow: 0 0 60px rgba(102, 126, 234, 0.8);
  }
}

.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(--primary-gradient);
  color: rgb(0, 0, 0);
  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: var(--shadow-lg);
}

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

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgb(255, 255, 255);
  transition: all 0.3s ease;
}

.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(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  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.8);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[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: rgb(255, 255, 255);
  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: #333333;
  flex: 1;
  text-align: center;
}

[data-theme="dark"] .tab-btn.active {
  background: var(--primary-gradient);
  color: rgb(0, 0, 0);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: rgb(255, 255, 255);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.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.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  margin-top: 2rem;
  margin-bottom: 2.2rem;
  margin-left: 0.7rem;
  margin-right: 0.7rem;
}

.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(0, 0, 0, 0.5);
  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(255, 255, 255, 0.2);
  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(--primary-gradient);
  color: rgb(0, 0, 0);
  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(--primary-gradient);
  color: rgb(0, 0, 0);
  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(0, 0, 0, 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(0, 0, 0, 0.7);
  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.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  background: var(--primary-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.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 1.8rem;
}

.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 #b178d4);
  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(--primary-gradient);
  color: black;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.show-more-btn:hover {
  transform: scale(1.05);
}

.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(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-card {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  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(34, 197, 94, 0.258);
  color: #22c55e;
}

.status.expert {
  background: rgba(255, 140, 0, 0.2);
  color: #ff8c00;
}

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

.stat-box {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box.solved {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

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

[data-theme="dark"] .stat-label {
  font-size: 0.9rem;
  color: white;
}

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

.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: white;
}

.language-percent {
  color: black;
  font-weight: 500;
}

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

.language-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  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(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.difficulty-item.easy .difficulty-count {
  color: #22c55e;
}

.difficulty-item.medium {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

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

.difficulty-item.hard {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.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: #787878;
  color: white;
}

.github-btn:hover {
  background: #444;
  transform: translateY(-2px);
}

.leetcode-btn {
  background: #ff8c00;
  color: white;
}

.leetcode-btn:hover {
  background: #ff7700;
  transform: translateY(-2px);
}

/* 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(0, 0, 0);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  font-weight: 800;
}

.connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

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

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

.contact-form {
  background: rgba(0, 0, 0, 0.035);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

[data-theme="dark"] .form-group ::placeholder {
  color: white;
}

.form-group ::placeholder {
  color: black;
  font-weight: 500;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  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(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgb(230, 230, 230);
  backdrop-filter: blur(10px);
  color: rgb(0, 0, 0);
  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(--primary-gradient) 1;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.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;
  }

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

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

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

  .skills-container {
    justify-content: center;
  }

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

  .animation {
    height: 250px;
  }

  .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(0, 0, 0, 0);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .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(0, 0, 0, 0.112);
  }

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

  .footer-links {
    display: none;
  }
}
