/* =================== RESET & BASE =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #f5f5f5;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

html {
  scroll-behavior: smooth;
}

/* =================== NAVBAR =================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0a0a0a;
  border-bottom: 1px solid #222;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s;
}

.nav-left {
  font-size: 1.2rem;
  font-weight: bold;
  color: #8ab4f8;
}

.nav-right a {
  margin-left: 1.5rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-right a:hover {
  color: #8ab4f8;
}

.nav-right a.active {
  color: #8ab4f8;
  font-weight: 600;
  border-bottom: 2px solid #8ab4f8;
}

.nav-left {
  font-size: 1.2rem;
  font-weight: bold;
  color: #8ab4f8;
  text-decoration: none;
  cursor: pointer;
}
@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav-right {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}


/* =================== HERO BACKGROUND =================== */
/* =================== HERO BACKGROUND =================== */
.hero-bg {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0),
                    radial-gradient(circle at 3px 3px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 28px 28px;
  background-blend-mode: overlay;
  animation: flicker 8s infinite alternate ease-in-out;
  position: relative;
  z-index: 0;
}

@keyframes flicker {
  0%, 100% {
    background-position: center center;
  }
  50% {
    background-position: center 2px;
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.5) 100%);
  z-index: 0;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    align-items: center;
    padding: 6rem 1rem 3rem;
    text-align: center;
  }

  .hero-image img {
    max-width: 90vw;
  }

  .buttons {
    justify-content: center;
  }
}

/* =================== PARTICLE BACKGROUND =================== */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* =================== HERO SECTION =================== */
.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: auto;
  gap: 3rem;
  flex-wrap: wrap;
  overflow: hidden;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  position: relative;
  z-index: 1;
}

.intro {
  font-size: 1rem;
  color: #aaa;
}

.name {
  font-size: 3rem;
  color: #8ab4f8;
  margin: 0.5rem 0;
}

.role {
  font-size: 2rem;
  color: #999;
  margin-bottom: 1rem;
}

.tags {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.description {
  font-size: 1rem;
  color: #ccc;
  max-width: 600px;
}

.quote {
  font-style: italic;
  font-size: 0.95rem;
  color: #999;
  margin-top: 1rem;
  text-align: center;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  opacity: 0;
  animation: fadeIn 2s ease 1.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 0.85;
  }
}

/* =================== BUTTONS =================== */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.btn.static {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: 1px solid #444;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.btn.static:hover {
  background-color: #1a1a1a;
}

.social-btn {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: 1px solid #444;
  color: #fff;
  padding: 0.6rem;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 2.6rem;
}

.social-btn i {
  font-size: 1.2rem;
  transition: margin 0.3s ease;
}

.social-btn span {
  white-space: nowrap;
  opacity: 0;
  margin-left: 0;
  transition: opacity 0.3s ease, margin-left 0.3s ease;
  font-size: 0.95rem;
}

.social-btn:hover {
  width: auto;
  padding-right: 1rem;
}

.social-btn:hover span {
  opacity: 1;
  margin-left: 0.5rem;
}

.github:hover   { background-color: #222; }
.linkedin:hover { background-color: #0A66C2; }
.scholar:hover  { background-color: #4285F4; color: #fff; }

/* =================== PROFILE IMAGE =================== */
.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  max-width: 400px;
  border-radius: 10px;
  border: 1px solid #333;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* =================== CONTACT SECTION =================== */
.contact {
  background-color: #0a0a0a;
  padding: 4rem 2rem;
  text-align: center;
  color: #ccc;
  border-top: 1px solid #222;
}

.contact h2 {
  font-size: 1.8rem;
  color: #8ab4f8;
  margin-bottom: 0.5rem;
}

.contact p {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.email-link {
  display: inline-block;
  color: #3b82f6;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  margin: 1rem auto 2rem;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.footer-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2rem;
}

/* =================== THEME TOGGLE BUTTON =================== */
#theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background-color: #222;
  border: none;
  color: #fff;
  padding: 0.75rem;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

#theme-toggle:hover {
  background-color: #444;
}

/* =================== LIGHT THEME =================== */
body.light {
  background-color: #fdfdfd;
  color: #111;
}

body.light nav {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
}

body.light .nav-left {
  color: #3366cc;
}

body.light .nav-right a {
  color: #111;
}

body.light .nav-right a:hover {
  color: #3366cc;
}

body.light .hero-bg {
  background-color: #f5f5f5;
  background-image: radial-gradient(#0000000d 1px, transparent 0);
}

body.light .description,
body.light .tags,
body.light .role,
body.light .intro {
  color: #333;
}

body.light .name {
  color: #3366cc;
}

body.light .quote {
  color: #555;
}

body.light .btn.static,
body.light .social-btn {
  border: 1px solid #aaa;
  color: #222;
  background-color: transparent;
}

body.light .social-btn:hover span {
  color: #000;
}

body.light .github:hover {
  background-color: #ddd;
}
body.light .linkedin:hover {
  background-color: #e0f0ff;
}
body.light .scholar:hover {
  background-color: #e8f0fe;
}

body.light .hero-image img {
  border: 1px solid #ccc;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

body.light .contact {
  background-color: #f0f0f0;
  color: #333;
  border-top: 1px solid #ccc;
}

body.light .email-link {
  color: #2563eb;
}

body.light .email-link:hover {
  color: #1d4ed8;
}

body.light .footer-note {
  color: #555;
}

/* =================== RESPONSIVE =================== */
@media screen and (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-right {
    margin-top: 0.5rem;
  }
}

/* ============ ABOUT ME SECTION ============ */
.about-me {
  padding: 5rem 2rem;
  background-color: transparent;
  color: inherit;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 2.5rem;
  color: #8ab4f8;
  margin-bottom: 2rem;
  text-align: center;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.about-left {
  flex: 4;
  min-width: 320px;
  background-color: #0a0a0a;
  border-radius: 12px;
  padding: 2rem;
  color: #ddd;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.about-right {
  flex: 1;
  min-width: 240px;
  background-color: #0a0a0a;
  border-radius: 12px;
  padding: 2rem;
  color: #ddd;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}


.about-summary {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.interest-tags span {
  background-color: #111;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border: 1px solid #333;
  color: #8ab4f8;
}

.about-desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about-desc a {
  color: #8ab4f8;
  text-decoration: none;
}
.about-desc a:hover {
  text-decoration: underline;
}

.skills-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #8ab4f8;
}

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

.skill-category h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #a3bffa;
}

.skill-category p {
  font-size: 0.95rem;
  color: #ccc;
}



/* ============ HIGHLIGHTS ============ */
.about-right h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #8ab4f8;
}

.highlight-card p {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.4;
  margin: 0.4rem 0 0;
}


.highlight-card h4 {
  font-size: 1.1rem;
  color: #a3bffa;
}

.highlight-card {
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
}


.highlight-card a {
  font-size: 0.9rem;
  color: #3b82f6;
  text-decoration: none;
}

.highlight-card a:hover {
  text-decoration: underline;
}

.highlight-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #2563eb;
  color: white;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.highlight-btn:hover {
  background-color: #1e40af;
}

/* ============ LIGHT THEME ============ */
body.light .about-left,
body.light .about-right {
  background-color: #f8f8f8;
  color: #222;
}

body.light .interest-tags span {
  background-color: #e0e0e0;
  color: #2563eb;
  border: 1px solid #ccc;
}

body.light .skill-category p,
body.light .highlight-card p {
  color: #444;
}

body.light .highlight-card {
  background-color: #fff;
  border: 1px solid #ccc;
}

body.light .highlight-btn {
  background-color: #2563eb;
}

body.light .highlight-btn:hover {
  background-color: #1e40af;
}

/* ============ Education ============ */
.education-section {
  padding: 5rem 2rem;
  background-color: transparent;
  color: inherit;
  max-width: 1200px;
  margin: auto;
}

.education-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.education-card {
  flex: 4;
  min-width: 320px;
  background-color: #0a0a0a;
  border-radius: 12px;
  padding: 2rem;
  color: #ddd;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #222;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.edu-tabs {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.edu-tabs .tab {
  background-color: #111;
  color: #8ab4f8;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid #333;
  cursor: pointer;
}

.edu-tabs .tab.active {
  background-color: #1f2937;
  font-weight: 600;
  border-color: #3b82f6;
}

.edu-content li {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.tab-content {
  display: none;
  margin-top: 1rem;
}

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

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

.course-section h4 {
  font-size: 1rem;
  color: #8ab4f8;
  margin-bottom: 0.6rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
  color: #ccc;
}

body.light .course-grid {
  color: #333;
}

/* ============ LIGHT THEME SUPPORT: EDUCATION ============ */
body.light .education-card {
  background-color: #fff;
  color: #000;
  border: 1px solid #ddd;
}

body.light .edu-header {
  color: #111;
}

body.light .edu-tabs .tab {
  background-color: #f3f4f6;
  color: #2563eb;
  border: 1px solid #ccc;
}

body.light .edu-tabs .tab.active {
  background-color: #e0e7ff;
  border-color: #2563eb;
  font-weight: 600;
}

body.light .edu-content li {
  color: #444;
}

body.light .course-section h4 {
  color: #2563eb;
}

body.light .course-grid {
  color: #333;
}


/* =================== EXPERIENCE SECTION =================== */
.experience-section {
  background-color: transparent;
  color: inherit;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 3rem;
}

/* Timeline layout */
.timeline {
  position: relative;
  max-width: 1100px;
  margin: auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #2679ff;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-entry {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  margin-bottom: 2.5rem;
}

.timeline-entry.left {
  left: 0;
}

.timeline-entry.right {
  left: 50%;
}

.timeline-entry::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: #2679ff;
  border: 4px solid #1e1f26;
  top: 30px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-entry.left::after {
  right: -10px;
}

.timeline-entry.right::after {
  left: -10px;
}

/* Flip Card Layout */
.flip-card {
  background-color: transparent;
  perspective: 1000px;
  width: 100%;
  height: auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.flip-card:hover .flip-card-inner,
.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  width: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 1.5rem;
  background-color: rgba(60, 62, 75, 0.5); /* 🔥 Translucent like project card */
  color: #f5f5f5;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.flip-card-front {
  position: relative;
  z-index: 2;
}

.flip-card-back {
  transform: rotateY(180deg);
  z-index: 1;
}

/* Fix wrapper height to match tallest side */
.flip-card-inner {
  min-height: auto;
}

/* Card Content */
.flip-card-front h3,
.flip-card-back h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #7bd8ff;
}

.flip-card-front p,
.flip-card-back ul {
  font-size: 0.95rem;
  color: #ccc;
}

.flip-card-back ul {
  padding-left: 1.2rem;
}

.flip-card-back ul li {
  margin-bottom: 0.4rem;
}

/* Badge */
.badge {
  background-color: #3a3d4d;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .timeline-entry {
    width: 100%;
    padding-left: 60px;
    padding-right: 25px;
  }

  .timeline-entry.right {
    left: 0;
  }

  .timeline-entry.left::after,
  .timeline-entry.right::after {
    left: 15px;
  }
}

/* =================== LIGHT THEME SUPPORT =================== */
body.light .timeline::after {
  background-color: #2563eb;
}

body.light .timeline-entry::after {
  background-color: #2563eb;
  border-color: #f5f5f5;
}

body.light .flip-card-front,
body.light .flip-card-back {
  background-color: #ffffff;
  color: #111;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light .flip-card-front h3,
body.light .flip-card-back h4 {
  color: #2563eb;
}

body.light .flip-card-front p,
body.light .flip-card-back ul {
  color: #444;
}

body.light .badge {
  background-color: #e0e0e0;
  color: #000;
}

/* =================== PROJECT SECTION =================== */
.project-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.project-section .section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #8ab4f8;
}

.project-section .section-subtitle {
  color: #aaa;
  margin-bottom: 2.5rem;
}

.project-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.project-card {
  background-color: #1e1f26;
  color: #f5f5f5;
  border-radius: 12px;
  padding: 1.5rem;
  width: calc(50% - 1rem); /* 🟦 Two cards per row */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  text-align: left;
}


.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-img {
  width: 100%;
  height: 270px; /* ⬅ increased from auto */
  object-fit: cover; /* ensures the image fills the area nicely */
  border-radius: 10px;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


.project-title {
  font-size: 1.3rem;
  color: #7bd8ff;
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.project-link:hover {
  text-decoration: underline;
}

/* =================== LIGHT THEME SUPPORT =================== */
body.light .project-card {
  background-color: #fff;
  color: #111;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

body.light .project-title {
  color: #2563eb;
}

body.light .project-desc {
  color: #444;
}

body.light .project-link {
  color: #2563eb;
}

/* =================== RESPONSIVE =================== */
@media screen and (max-width: 1024px) {
  .project-card {
    width: calc(50% - 1rem); /* 2 per row */
  }
}

@media screen and (max-width: 600px) {
  .project-card {
    width: 100%; /* 1 per row */
  }
}


/* ======== Research Section ======== */
#research {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: auto;
  color: inherit;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #8ab4f8;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-button {
  background-color: #111;
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.tab-button:hover,
.tab-button.active {
  background-color: #3b82f6;
  color: #fff;
}

/* Cards */
.research-card {
  background-color: #0a0a0a;
  border: 1px solid #1a1a1a;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  font-size: 0.92rem;
  line-height: 1.4;
}

.research-card h3,
.research-card h4 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
  color: #8ab4f8;
}

.research-card p {
  margin: 0.2rem 0;
  color: #aaa;
}

/* Tags */
.tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.tag-btn {
  background-color: #111;
  border: 1px solid #3b82f6;
  color: #3b82f6;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.tag-btn:hover {
  background-color: #3b82f6;
  color: #fff;
}

/* Tab switching logic */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Light theme override */
body.light .tab-button {
  background-color: #f0f0f0;
  color: #111;
}
body.light .tab-button.active {
  background-color: #3366cc;
  color: white;
}
body.light .research-card {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #111;
}
body.light .research-card p {
  color: #333;
}
body.light .tag-btn {
  border-color: #3366cc;
  color: #3366cc;
}
body.light .tag-btn:hover {
  background-color: #3366cc;
  color: #fff;
}


/* ========== Achievements Section ========== */
.achievements-section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
  color: inherit;
}

.achievement-box {
  background: linear-gradient(145deg, #0a0a0a, #111111);
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.1);
}

.achievement-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
  border-left: 3px solid #3b82f6;
  padding-left: 1rem;
}

.achievement-card .icon {
  font-size: 1.4rem;
  color: #3b82f6;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.achievement-card h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.achievement-card p {
  font-size: 0.95rem;
  color: #aaa;
  margin: 0;
}

/* Light theme override */
body.light .achievement-box {
  background: #fdfdfd;
  border: 1px solid #ccc;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

body.light .achievement-card {
  border-left-color: #3366cc;
}

body.light .achievement-card h4 {
  color: #111;
}

body.light .achievement-card p {
  color: #444;
}

body.light .achievement-card .icon {
  color: #3366cc;
}


/* ========== Certifications Section ========== */
.certifications-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

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

.cert-card {
  background-color: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: scale(1.03);
}

.cert-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Light theme */
body.light .cert-card {
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* ========== RESPONSIVE: ABOUT, EDUCATION, EXPERIENCE ========== */
@media screen and (max-width: 768px) {
  .about-container,
  .education-container,
  .experience-section .timeline {
    flex-direction: column;
    align-items: center;
  }

  .flip-card,
  .education-card,
  .about-left,
  .about-right {
    width: 100% !important;
    max-width: 100% !important;
  }

  .timeline::after {
    left: 20px;
  }

  .timeline-entry {
    width: 100%;
    padding-left: 60px;
    padding-right: 25px;
  }

  .timeline-entry.right {
    left: 0;
  }

  .timeline-entry.left::after,
  .timeline-entry.right::after {
    left: 15px;
  }
}

/* ========== RESPONSIVE: PROJECTS ========== */
@media screen and (max-width: 768px) {
  .project-row {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .project-img {
    height: auto;
  }
}

/* ========== RESPONSIVE: CERTIFICATIONS ========== */
@media screen and (max-width: 768px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    width: 100% !important;
  }
}

/* ========== RESPONSIVE: TABS ========== */
@media screen and (max-width: 768px) {
  .tab-button {
    flex: 1 1 45%;
  }

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