:root {
    --primary-light: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-light: #a855f7;
    --secondary-dark: #7e22ce;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-light: #1e293b;
    --text-dark: #f8fafc;
    --card-light: #ffffff;
    --card-dark: #1e293b;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  background: linear-gradient(to bottom right, #eef2ff, #e0f2fe, #cffafe);
  color: var(--text-light);
}

body.dark-mode {
  background: var(--bg-dark);
  color: var(--text-dark);
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease;
}

body.dark-mode header {
  background-color: rgba(30, 41, 59, 0.9);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo i {
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a:hover,
nav a.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

body.dark-mode nav a:hover,
body.dark-mode nav a.active {
  color: var(--primary-light);
}

.theme-toggle {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  transition: background-color 0.3s ease;
}

body.dark-mode .theme-toggle {
  background-color: #334155;
}

.theme-toggle:hover {
  background-color: #e2e8f0;
}

body.dark-mode .theme-toggle:hover {
  background-color: #475569;
}

/* Hide specific icons based on theme */
body:not(.dark-mode) .moon-icon {
  display: block;
}

body:not(.dark-mode) .sun-icon {
  display: none;
}

body.dark-mode .moon-icon {
  display: none;
}

body.dark-mode .sun-icon {
  display: block;
}

/* Main Content */
main {
  padding: 40px 0;
}

section {
  min-height: 80vh;
  padding: 60px 0;
  display: none;
}

section.active {
  display: block;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 40px 0;
  min-height: 80vh;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span {
  display: block;
  margin-top: 8px;
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: #64748b;
}

body.dark-mode .hero p {
  color: #cbd5e1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--primary-dark), var(--secondary-dark));
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid #cbd5e1;
  color: inherit;
}

body.dark-mode .btn-secondary {
  border-color: #475569;
}

.btn-secondary:hover {
  background-color: rgba(100, 116, 139, 0.1);
  transform: translateY(-2px);
}

/* Skills Widget */
.skills-widget {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  background-color: transparent;
  border-radius: 0;
  padding: 20px;
  box-shadow: none;
}

.skills-widget h3 {
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  z-index: 20;
}

.tech-stack-circle {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 25px auto 0;
}

.circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  z-index: 10;
  text-align: center;
  font-size: 14px;
}

.orbit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(59, 130, 246, 0.3);
}

.tech-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-120px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-item .content {
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
}

.skill-icon {
  background-color: #e0f2fe;
  color: #3b82f6;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 5px;
}

.skill-name {
  font-size: 11px;
  text-align: center;
  font-weight: 500;
  color: #333;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.profile-card {
  background-color: var(--card-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

body.dark-mode .profile-card {
  background-color: var(--card-dark);
}

.profile-image {
  aspect-ratio: 1;
  background-color: #cbd5e1;
  position: relative;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  padding: 24px;
}

.profile-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.profile-location {
  color: #64748b;
  margin-bottom: 4px;
}

body.dark-mode .profile-location {
  color: #94a3b8;
}

.profile-contact {
  margin: 16px 0;
}

.profile-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.profile-contact a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f1f5f9;
  color: var(--primary-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

body.dark-mode .social-link {
  background-color: #334155;
}

.social-link:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

body.dark-mode .social-link:hover {
  background-color: #475569;
}

.about-content {
  background-color: var(--card-light);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

body.dark-mode .about-content {
  background-color: var(--card-dark);
}

.about-content h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.about-content p {
  margin-bottom: 16px;
}

.education {
  margin-top: 32px;
}

.achievements {
  margin-top: 32px;
}

.achievement-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.achievement-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, #e0e7ff, #ddd6fe);
  border-radius: 8px;
}

body.dark-mode .achievement-icon {
  background: linear-gradient(to bottom right, #312e81, #4c1d95);
}

.achievement-icon i {
  color: var(--primary-light);
}

.achievement-details h4 {
  font-weight: 600;
}

.achievement-details p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0;
}

body.dark-mode .achievement-details p {
  color: #94a3b8;
}

/* Experience Section */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 64px;
}

.timeline-item {
  background-color: var(--card-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

body.dark-mode .timeline-item {
  background-color: var(--card-dark);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-title h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.timeline-title h4 {
  color: var(--primary-light);
  font-weight: 500;
}

.timeline-period {
  background-color: #f1f5f9;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

body.dark-mode .timeline-period {
  background-color: #334155;
}

.timeline-description {
  margin-bottom: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: linear-gradient(
    to right,
    rgba(99, 102, 241, 0.1),
    rgba(168, 85, 247, 0.1)
  );
  color: #6366f1;
}

body.dark-mode .tag {
  background: linear-gradient(
    to right,
    rgba(99, 102, 241, 0.2),
    rgba(168, 85, 247, 0.2)
  );
  color: #a5b4fc;
}

.skills-section {
  margin-top: 64px;
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.skill-category {
  background-color: var(--card-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

body.dark-mode .skill-category {
  background-color: var(--card-dark);
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.skill-bar {
  margin-bottom: 16px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.skill-bar-name {
  font-weight: 500;
}

.skill-bar-percentage {
  color: #64748b;
}

body.dark-mode .skill-bar-percentage {
  color: #94a3b8;
}

.skill-bar-track {
  width: 100%;
  height: 8px;
  background-color: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

body.dark-mode .skill-bar-track {
  background-color: #334155;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
}

/* Projects Section */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  margin-bottom: 20px;
  width: 100%;
}

.project-card {
  flex: 0 0 calc(50% - 10px);
  background: linear-gradient(145deg, rgba(238, 242, 255, 0.75), rgba(224, 242, 254, 0.85));
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

/* Adjusting for 5 cards specifically */
.project-card:nth-child(5) {
  flex: 0 0 100%;
  max-width: 48%;
  margin: 0 auto;
}

body.dark-mode .project-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  aspect-ratio: 16/9;
  background-color: #cbd5e1;
  position: relative;
  overflow: hidden;
}

.project-image img,
.project-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#quant-video-container {
  max-width: 40%;
  margin: 0 auto;
  display: block;
}

.project-content {
  padding: 15px;
}

.project-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 12px;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.project-period {
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  margin-bottom: 5px;
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(2px);
}

body.dark-mode .project-period {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.project-description {
  margin-bottom: 10px;
  color: #1e293b;
  font-size: 0.85rem;
  line-height: 1.4;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  max-height: none;
}

body.dark-mode .project-description {
  color: #e2e8f0;
}

.project-tags {
  margin-bottom: 10px;
}

.project-tags .tag {
  padding: 2px 8px;
  font-size: 0.75rem;
  margin-right: 3px;
  margin-bottom: 3px;
  display: inline-block;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f97316;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-link:hover {
  color: #fb923c;
  transform: translateX(5px);
}

.project-link i {
  font-size: 0.875rem;
  color: #f97316;
  transition: all 0.3s ease;
}

.project-link:hover i {
  color: #fb923c;
  transform: translateX(3px);
}

body.dark-mode .project-link {
  color: #f97316;
}

body.dark-mode .project-link:hover {
  color: #fb923c;
}

body.dark-mode .project-link i {
  color: #f97316;
}

body.dark-mode .project-link:hover i {
  color: #fb923c;
}

/* Container adjustment for projects section */
#projects .container {
  max-width: 100%;
  padding: 0 30px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .project-card {
    flex: 0 0 calc(50% - 10px);
  }
  
  .project-card:nth-child(5) {
    flex: 0 0 100%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .project-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .project-card:nth-child(5) {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* --- Contact Section Styles --- */
#contact {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #f8fafc, #eef2ff, #f0f9ff, #f8fafc);
  background-size: 400% 400%;
  animation: subtleGradientShift 20s ease infinite;
  z-index: -1;
  transition: background 0.3s ease;
}

body.dark-mode #contact::before {
  background: linear-gradient(135deg, #1a233a, #1e293b, #293651, #1a233a);
  background-size: 400% 400%;
  animation: subtleGradientShift 20s ease infinite;
}

@keyframes subtleGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.dark-mode #contact {
  background-color: #1a233a;
}

#contact .title-container {
  position: relative;
  margin-bottom: 40px;
}

/* Add animated underline to contact title */
#contact .section-title {
  position: relative; /* Needed for pseudo-element */
  display: inline-block; /* Fit content width */
  padding-bottom: 10px; /* Space for underline */
}

#contact .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  transition: width 0.6s ease-out; /* Transition for width */
  transition-delay: 0.3s; /* Delay the animation start slightly */
}

/* Trigger animation when AOS makes title visible */
#contact .section-title[data-aos="fade-down"].aos-animate::after {
  width: 70%; /* Animate width to 70% */
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}

.contact-info h3,
.contact-action h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-light);
}

.contact-info p,
.contact-action p {
  margin-bottom: 20px;
  color: #64748b;
}

body.dark-mode .contact-info p,
body.dark-mode .contact-action p {
  color: #94a3b8;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.contact-details li i {
  color: var(--primary-light);
  margin-right: 15px;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-details li:hover i {
  transform: scale(1.2);
  color: var(--secondary-light);
}

.contact-details li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details li a:hover {
  color: var(--primary-light);
}

.contact-socials {
  display: flex;
  gap: 15px;
}

.contact-socials .social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #eef2ff;
  color: var(--primary-light);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

body.dark-mode .contact-socials .social-link {
  background-color: #334155;
}

.contact-socials .social-link:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 15px rgba(99, 102, 241, 0.2);
}

.contact-action {
  background-color: var(--card-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

body.dark-mode .contact-action {
  background-color: var(--card-dark);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* --- New Cool Stuff Section --- */
.cool-stuff {
  background: #f8fafc;
  padding: 3rem 1rem;
  text-align: center;
}

.cool-stuff h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.cool-stuff p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.social-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  color: var(--primary-light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card i {
  font-size: 1.5rem;
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

body.dark-mode .cool-stuff {
  background: #1e293b;
}

body.dark-mode .cool-stuff h2,
body.dark-mode .cool-stuff p {
  color: var(--text-dark);
}

body.dark-mode .social-card {
  background: #334155;
  color: var(--text-dark);
}

/* Add spacer to reduce blank space */
.spacer {
  height: 40px;
}

/* Single Page Layout Adjustments */
html {
  scroll-behavior: smooth;
}

section {
  padding: 80px 0;
  position: relative;
  min-height: auto;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

section:not(:last-child) {
  margin-bottom: 20px;
}

#home {
  min-height: 100vh;
  padding-top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

/* Adjust for fixed header */
main {
  padding-top: 80px;
}

/* Smooth active state transitions for nav links */
nav a {
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a.active::after {
  width: 100%;
}

/* Section transitions */
section {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Add proper spacing for scrolling target */
:target {
  scroll-margin-top: 100px;
}

/* New Achievement Placards Styles */
.achievements-section {
  margin: 80px 0 40px;
  width: 100%;
}

.achievement-placards {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin: 40px 0;
  width: 100%;
  max-width: 100%;
}

.achievement-placard {
  width: 32%;
  height: 300px;
  perspective: 1000px;
  cursor: pointer;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.achievement-placard:hover {
  transform: translateY(-5px);
}

.achievement-placard-front,
.achievement-placard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.8s ease, box-shadow 0.3s ease;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}

.achievement-placard:hover .achievement-placard-front,
.achievement-placard:hover .achievement-placard-back {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 
              0 0 20px rgba(99, 102, 241, 0.5),
              0 0 35px rgba(99, 102, 241, 0.3),
              0 0 50px rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

body.dark-mode .achievement-placard:hover .achievement-placard-front,
body.dark-mode .achievement-placard:hover .achievement-placard-back {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(99, 102, 241, 0.7),
              0 0 40px rgba(99, 102, 241, 0.4),
              0 0 60px rgba(168, 85, 247, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.achievement-placard-front {
  background-color: var(--card-light);
  justify-content: center;
  transform: rotateY(0deg);
}

body.dark-mode .achievement-placard-front {
  background-color: var(--card-dark);
}

.achievement-placard-back {
  background-color: var(--card-light);
  transform: rotateY(180deg);
  justify-content: space-between;
  padding-bottom: 20px;
}

body.dark-mode .achievement-placard-back {
  background-color: var(--card-dark);
}

.achievement-placard:hover .achievement-placard-front,
.achievement-placard.flipped .achievement-placard-front {
  transform: rotateY(180deg);
}

.achievement-placard:hover .achievement-placard-back,
.achievement-placard.flipped .achievement-placard-back {
  transform: rotateY(360deg);
}

.achievement-placard .achievement-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
  background: linear-gradient(to bottom right, #e0e7ff, #ddd6fe);
  color: var(--primary-light);
}

body.dark-mode .achievement-placard .achievement-icon {
  background: linear-gradient(to bottom right, #312e81, #4c1d95);
}

.achievement-placard h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.achievement-placard-back p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #64748b;
}

body.dark-mode .achievement-placard-back p {
  color: #94a3b8;
}

.achievement-placard-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.click-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 15px;
  position: relative;
  padding-bottom: 3px;
}

body.dark-mode .click-hint {
  color: #94a3b8;
}

.click-hint::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  opacity: 0.5;
}

@media (max-width: 992px) {
  .achievement-placards {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .achievement-placard {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .achievement-placards {
    gap: 20px;
  }
  
  .achievement-placard {
    width: 100%;
    max-width: 350px;
  }
}

/* Experience Bullets Styling */
.experience-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.experience-bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.experience-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
}

.experience-bullets li:hover::before {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* New Skills Grid Styling */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.skill-category-card {
  background-color: var(--card-light);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

body.dark-mode .skill-category-card {
  background-color: var(--card-dark);
}

.skill-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
}

.skill-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.2));
  margin-bottom: 16px;
}

.skill-category-icon i {
  font-size: 24px;
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skill-category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Project Filter Buttons */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 40px;
}

.filter-btn {
  background-color: transparent;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 30px;
  padding: 8px 20px;
  color: #64748b;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

body.dark-mode .filter-btn {
  color: #94a3b8;
  border-color: rgba(99, 102, 241, 0.3);
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--primary-light);
}

.filter-btn.active {
  background: linear-gradient(to right, var(--primary-light), var(--secondary-light));
  color: white;
  border-color: transparent;
}

/* Project Card Transitions for Filtering */
.project-card {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card.hidden {
  opacity: 0;
  transform: scale(0.8);
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .project-filters {
    gap: 8px;
  }
  
  .filter-btn {
    font-size: 0.85rem;
    padding: 6px 15px;
  }
}

/* Open Source Section Styles */
#open-source {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.repo-animation {
  position: absolute;
  right: 30px;
  top: 40px;
  width: 150px;
  height: 100px;
  z-index: 1;
}

.branch-line {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 2px;
}

.branch-merge {
  position: absolute;
  top: 50px;
  left: 70px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-light), var(--secondary));
  transform: rotate(45deg);
  border-radius: 2px;
}

.commit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
  animation: pulse 2s infinite;
}

.commit-1 {
  top: 16px;
  left: 30px;
  animation-delay: 0s;
}

.commit-2 {
  top: 16px;
  left: 80px;
  animation-delay: 0.6s;
}

.commit-3 {
  top: 42px;
  left: 50px;
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
  animation-delay: 1.2s;
}

.os-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.os-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.os-project {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.os-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.os-project:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 4px 0 0 4px;
}

.os-project-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.os-project-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem;
  color: white;
}

.os-project-info h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading-color);
}

.os-project-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* Add these styles to improve visibility of repository statistics */
.os-project-meta span {
  display: inline-flex;
  align-items: center;
  background: rgba(99, 102, 241, 0.8);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  color: white;
  font-size: 0.95rem;
}

.os-project-meta i {
  margin-right: 5px;
  color: white;
}

[data-theme="dark"] .os-project-meta span {
  background: rgba(99, 102, 241, 0.8);
  color: white;
}

[data-theme="dark"] .os-project-meta i {
  color: white;
}

.os-project-description {
  margin-bottom: 20px;
  line-height: 1.5;
  color: var(--text-color);
}

.os-contributions {
  background: rgba(99, 102, 241, 0.05);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.os-contribution {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(99, 102, 241, 0.2);
}

.os-contribution:last-child {
  border-bottom: none;
}

.os-pr-number {
  display: inline-block;
  background: var(--primary-light);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.os-project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.os-project-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Dark mode adjustments for OS section */
[data-theme="dark"] .os-project {
  background: var(--card-bg-dark);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .os-project:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .os-contributions {
  background: rgba(99, 102, 241, 0.1);
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .os-projects {
    grid-template-columns: 1fr;
  }
  
  .repo-animation {
    display: none;
  }
}

.skills-animation {
  position: absolute;
  right: 30px;
  top: 40px;
  width: 120px;
  height: 120px;
  z-index: 1;
}

.gear {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-light), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear::before {
  content: '';
  position: absolute;
  width: 40%;
  height: 40%;
  background-color: white;
  border-radius: 50%;
  z-index: 2;
}

.gear-1 {
  width: 60px;
  height: 60px;
  top: 0;
  left: 0;
}

.gear-2 {
  width: 40px;
  height: 40px;
  top: 40px;
  left: 50px;
}

.gear-3 {
  width: 30px;
  height: 30px;
  top: 15px;
  left: 80px;
}

/* Make the skills section stand out more */
#skills {
  position: relative;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.5) 0%, rgba(199, 210, 254, 0.3) 100%);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body.dark-mode #skills {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.skills-animation {
  position: absolute;
  top: 20px;
  right: 40px;
  width: 180px;
  height: 120px;
  z-index: 1;
}

.gear {
  position: absolute;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #6366f1, #a5b4fc, #6366f1);
  transform-origin: center;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.gear::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  height: 40%;
  background: #f1f5f9;
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.gear-1 {
  width: 80px;
  height: 80px;
  top: 10px;
  right: 20px;
}

.gear-2 {
  width: 50px;
  height: 50px;
  top: 60px;
  right: 90px;
}

.gear-3 {
  width: 40px;
  height: 40px;
  top: 30px;
  right: 120px;
}

@media (max-width: 768px) {
  .skills-animation {
    display: none;
  }
}

.title-container {
  position: relative;
  padding-right: 45px;
}

/* Code Typing Animation for Open Source Section */
.code-animation {
  position: absolute;
  right: 700px;
  top: 21%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.code-terminal {
  width: 90%;
  height: 85%;
  position: relative;
  overflow: hidden;
}

.code-line {
  position: absolute;
  height: 3px;
  background: var(--primary-light);
  left: 3px;
  opacity: 0;
  animation: typeLine 3s infinite;
}

.code-line:nth-child(1) {
  width: 70%;
  top: 4px;
  animation-delay: 0s;
}

.code-line:nth-child(2) {
  width: 45%;
  top: 11px;
  animation-delay: 0.5s;
}

.code-line:nth-child(3) {
  width: 85%;
  top: 18px;
  animation-delay: 1s;
}

.code-cursor {
  position: absolute;
  width: 3px;
  height: 8px;
  background: var(--primary-light);
  right: 3px;
  top: 4px;
  animation: blink 1s infinite, moveCursor 3s infinite;
}

@keyframes typeLine {
  0% { 
    width: 0; 
    opacity: 1;
  }
  50% { 
    width: var(--width, 70%); 
    opacity: 1;
  }
  90%, 100% { 
    opacity: 0.7; 
  }
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes moveCursor {
  0% { top: 4px; }
  33% { top: 11px; }
  66% { top: 18px; }
  100% { top: 4px; }
}

body.dark-mode .code-animation {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

body.dark-mode .code-line,
body.dark-mode .code-cursor {
  background: #a5b4fc;
}

/* Open Source Section Adjustments */
#open-source .title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.os-more-info {
  font-size: 1.1rem;
  color: #64748b;
  margin-top: -1rem;
  margin-bottom: 2rem;
  text-align: center;
}

body.dark-mode .os-more-info {
  color: #94a3b8;
}

.os-more-info a {
  color: #F97316;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.os-more-info a:hover {
  color: #FB923C;
}

body.dark-mode .os-more-info a {
  color: #F97316;
}

body.dark-mode .os-more-info a:hover {
  color: #FB923C;
}
