/* ==========================================================================
   Root Variables and Global Styles (Mint Green Theme)
   ========================================================================== */
:root {
  --background: #ffffff;
  --foreground: #0b1220;
  --card: #f8fafc;
  --card-foreground: #0b1220;
  --primary: #43c59e; /* greenish-mint */
  --primary-foreground: #ffffff;
  --secondary: #f1f7f5;
  --secondary-foreground: #0b1220;
  --muted: #f1f7f5;
  --muted-foreground: #6b7280;
  --accent: #38b48b;
  --accent-foreground: #ffffff;
  --border: #e2efe8;
  --input: #f8fafc;
  --ring: rgba(67, 197, 158, 0.28);
  --radius: 0.75rem;
  --font-sans: "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Light Minty Gradient Colors */
  --gradient-color-1: #f0fff9;
  --gradient-color-2: #e8fdf6;
  --gradient-color-3: #f7fffb;
  --gradient-color-4: #f8fafc;
}

.dark {
  --background: #071018;
  --foreground: #e6f6ef;
  --card: #0f1720;
  --card-foreground: #e6f6ef;
  --primary: #43c59e; /* same mint accent in dark mode */
  --primary-foreground: #0b1220;
  --secondary: #1e293b;
  --secondary-foreground: #d7efe6;
  --muted: #0f1720;
  --muted-foreground: #94a3b8;
  --accent: #38b48b;
  --accent-foreground: #e6f6ef;
  --border: #243237;
  --input: #0f1720;

  /* Dark Minty Gradient Colors */
  --gradient-color-1: #071018;
  --gradient-color-2: #08141a;
  --gradient-color-3: #0f2a24;
  --gradient-color-4: #0f1720;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  line-height: 1.6;
  cursor: none;
  transition: color 0.3s ease, background 0.3s ease;
  background: linear-gradient(
    270deg,
    var(--gradient-color-1),
    var(--gradient-color-2),
    var(--gradient-color-3),
    var(--gradient-color-4)
  );
  background-size: 400% 400%;
  animation: background-gradient-shift 25s ease infinite;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.3s ease;
  opacity: 0.5;
}

/* ==========================================================================
   Layout and Components
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Floating Navigation */
.nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(var(--card), 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-link {
  background: none;
  border: none;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease;
  text-transform: capitalize;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
}

.nav-link:hover {
  background-color: var(--muted);
}

.nav-link.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem; /* Increased padding for a more prominent oval */
  border-radius: 9999px; /* More oval/pill shape */
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative; /* For glow/shine effects */
  overflow: hidden; /* To contain internal gradients/shadows */
  z-index: 1; /* Ensure it's above other elements if needed */
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  /* Adding a subtle radial gradient for a shiny effect */
  background: radial-gradient(circle at top left, rgba(255,255,255,0.15) 0%, transparent 70%), var(--primary);
  box-shadow: 0 0 15px rgba(67, 197, 158, 0.35); /* Mint glow */
}

.btn-primary:hover {
  background: radial-gradient(circle at top left, rgba(255,255,255,0.25) 0%, transparent 70%), /* slightly brighter */
    color: var(--primary-foreground);
  box-shadow: 0 0 25px rgba(67, 197, 158, 0.6); /* stronger mint glow on hover */
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--muted);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--muted-foreground);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(67, 197, 158, 0.08);
  color: var(--primary);
  border: 1px solid rgba(67, 197, 158, 0.18);
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0.25rem;
}

.tech-badge:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-1px);
}

/* ==========================================================================
   Page Sections
   ========================================================================== */

/* Section Headers */
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted-foreground);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  z-index: 10;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero-image {
  margin-top: 4rem;
}

.avatar {
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  border: 4px solid rgba(67, 197, 158, 0.18);
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: rgba(var(--card), 0.06);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fact-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.fact-label {
  font-weight: 500;
}

.fact-value {
  color: var(--muted-foreground);
}

.available {
  color: #22c55e !important;
}

/* Projects Section */
.projects-section {
  padding: 5rem 0;
}

.projects-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(67, 197, 158, 0.3);
}

.project-image-container {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
  transform: scale(1.15);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(7, 17, 16, 0.85), rgba(15, 34, 29, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-content {
  text-align: center;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.project-card:hover .project-overlay-content {
  transform: translateY(0);
}

.overlay-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.overlay-description {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.overlay-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.completed {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.in-progress {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.project-content {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-link {
  color: var(--muted-foreground);
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-link:hover {
  color: var(--primary);
}

.project-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  margin: -0.25rem;
}

.projects-footer {
  text-align: center;
  margin-top: 3rem;
}

/* Skills Section */
.skills-section {
  padding: 5rem 0;
  overflow-x: hidden;
}

.scroller {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll 30s linear infinite;
}

.scroller__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding-block: 1rem;
}

.scroller:hover .scroller__inner {
    animation-play-state: paused;
}

.skill-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.skill-logo-item i {
  font-size: 60px;
  color: var(--foreground);
  opacity: 0.8;
}

.skill-logo-item span {
  font-family: var(--font-mono);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Experience Section */
.experience-section {
  padding: 5rem 0;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.experience-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.experience-company {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
}

.experience-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.achievements-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.achievements-list {
  list-style: disc;
  list-style-position: inside;
  color: var(--muted-foreground);
}

/* Activities Section */
.activities-section {
  padding: 5rem 0;
  background: rgba(var(--card), 0.06);
}

.activities-grid {
  display: grid;
  gap: 2rem;
}

.activity-card {
  display: flex;
  flex-direction: column;
}

.activity-card .card {
  flex-grow: 1;
}

.activity-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.activity-organization {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.activity-period {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  width: fit-content;
  margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(67, 197, 158, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-label {
  font-weight: 500;
}

.social-title {
  font-weight: 500;
  margin-bottom: 1rem;
}

.social-links {
  padding-top: 1rem;
}

.social-buttons {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.social-buttons a i {
    margin-right: 8px;
    font-size: 1rem;
}


/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input);
  color: var(--foreground);
  font-family: var(--font-sans);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: rgba(var(--card), 0.06);
}

.footer-content {
  text-align: center;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 25px rgba(67, 197, 158, 0.45), 0 0 10px rgba(255, 255, 255, 0.25) inset; }
  50% { box-shadow: 0 0 50px rgba(67, 197, 158, 0.75), 0 0 20px rgba(255, 255, 255, 0.45) inset; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 1.5rem)); }
}

@keyframes background-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes drift {
  0% { transform: translate(0, 0); opacity: 0.1; }
  25% { transform: translate(15px, -20px); }
  50% { transform: translate(-10px, 15px); opacity: 0.15; }
  75% { transform: translate(5px, 10px); }
  100% { transform: translate(0, 0); opacity: 0.1; }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.gradient-text {
  background: linear-gradient(-45deg, #43c59e, #2fae88, #1fa97a, #43c59e);
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll Fade Animations */
.fade-in-up, .fade-in-left, .fade-in-right {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up {
  transform: translateY(30px);
}
.fade-in-left {
  transform: translateX(-30px);
}
.fade-in-right {
  transform: translateX(30px);
}

.fade-in-up.animate, .fade-in-left.animate, .fade-in-right.animate {
  opacity: 1;
  transform: translate(0, 0);
}

/* Particles Background */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.08;
  animation: drift 20s ease-in-out infinite;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
  .hero-subtitle {
    font-size: 1.5rem;
  }
  .hero-buttons {
    flex-direction: row;
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .activities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .experience-header {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .cursor,
  .cursor-follower {
    display: none;
  }
  body {
    cursor: auto;
  }
  .project-header, .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .social-buttons {
    flex-wrap: wrap;
  }
  .nav-links {
    display: none;
  }
  .nav {
    padding: 0.5rem;
  }

  /* === NEW MOBILE IMPROVEMENTS === */

  /* Reduce overall section spacing */
  .hero-section, .about-section, .projects-section, .skills-section, .experience-section, .activities-section, .contact-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Adjust hero section elements */
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }
  .avatar {
    width: 10rem;
    height: 10rem;
  }

  /* Adjust general section titles */
  .section-title {
    font-size: 2rem;
  }

  /* Make cards and forms more compact */
  .card-header, .card-content {
    padding: 1.25rem;
  }
  .project-title {
    font-size: 1.1rem;
  }
  .project-description {
    font-size: 0.9rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Adjust skills scroller for smaller screens */
  .scroller__inner {
    gap: 2rem;
  }
  .skill-logo-item i {
    font-size: 50px;
  }

  .activities-grid, .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery Section Styles */
/* Infinite Scroller */
.scroller {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.scroller__inner {
  display: flex;
  animation: scroll-left 30s linear infinite;
}
.gallery-item {
  flex: 0 0 auto;
  margin: 10px;
}
.gallery-image {
  max-height: 200px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}
.gallery-image:hover {
  transform: scale(1.05);
}

/* Lightbox Styling */
.lightbox {
  display: none; 
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  text-align: center;
}
.lightbox-content {
  max-width: 80%;
  max-height: 80%;
}
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Infinite scroll keyframes */
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

#gallery {
  scroll-margin-top: 100px;
}
/* ==========================================================================
   Interview Experiences - Collapsible Customization (Revised PC Layout)
   ========================================================================== */

.interview-card {
    box-shadow: none;
    border: none;
    background: transparent;
}

.interview-details {
    list-style: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

/* Style the summary (the clickable, visible header) */
.interview-summary {
    cursor: pointer;
    list-style: none;
    position: relative; /* Anchor for the absolutely positioned arrow */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    padding-right: 4rem !important; /* IMPORTANT: Create space for the arrow on the right */
    border-bottom: none;
}

.interview-summary:hover {
    background-color: var(--muted);
}

/* Hide the default triangle marker for the summary */
.interview-summary::-webkit-details-marker,
.interview-summary::marker {
    display: none;
    content: "";
}

/* Custom indicator (Arrow) */
.interview-summary::after {
    content: "\25BE"; /* Large black down-pointing triangle */
    font-size: 1.2rem;
    color: var(--primary);
    position: absolute;
    right: 1.5rem; /* Position the arrow in the new padded space */
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    opacity: 0.8;
}

/* Rotate the indicator for EXPANDED state */
.interview-details[open] .interview-summary::after {
    content: "\25B8";
    transform: translateY(-50%) rotate(90deg);
}

/* Ensure the header content uses the full available space but doesn't overlap the arrow */
.interview-summary .experience-header {
    /* Allow header content to use the remaining space */
    width: 100%; 
    /* Ensure the timeline badge stays grouped with the company/role details if needed, 
       but the arrow is now separate via absolute positioning on .interview-summary */
}

.interview-collapsible-content {
    border-top: 1px dashed var(--border);
}

.experience-company {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.interview-role {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.timeline-badge {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    background: var(--secondary);
    color: var(--secondary-foreground);
    width: fit-content;
    white-space: nowrap;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    /* Overrides the PC padding */
    .interview-summary {
        padding-right: 1.5rem !important; 
    }
    .interview-summary .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-right: 2.5rem;
    }
    .interview-summary::after {
        right: 1rem;
    }
}

/* ==========================================================================
   About Section Education Sub-List Customization (Spacing & Stacking Fix)
   ========================================================================== */

/* Spacing Fix: Ensure proper separation from the 'Quick Facts' grid above it */
.education-subheader {
    margin-top: 3rem; /* Adds clear space below the About grid */
    margin-bottom: 1.5rem; /* Space above the education list */
    padding-top: 1.5rem;
    border-top: 1px solid var(--border); /* Visual separator */
}

.education-sub-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    text-align: center;
}

/* PC WIDTH CONSTRAINT (Addresses the "consumes entire screen" issue) */
@media (min-width: 768px) {
    /* Apply a max width and center the list to align with the content above */
    .about-section .experience-list {
        max-width: 900px; /* Adjust this value if needed */
        margin-left: auto;
        margin-right: auto;
        margin-top: 2.5rem;
    }
}

/* VERTICAL STACKING FIX (Forces marks and timeline to stack) */
.education-details-group {
    display: flex;
    flex-direction: column; /* FORCES vertical stacking */
    align-items: flex-end; /* Align the badges to the right in PC view */
    gap: 0.5rem;
}

/* General styling for badges in the Education section */
.timeline-badge,
.marks-badge {
    display: inline-flex;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
    white-space: nowrap;
}

/* Specific styling for the badges */
.timeline-badge {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.current-timeline {
    background: var(--primary);
    color: var(--primary-foreground);
}

.marks-badge {
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .education-details-group {
        align-items: flex-start; /* Align badges to the left on mobile */
    }
}

/* Update: Adjusting experience-header for better internal spacing and alignment */
.experience-header {
  display: flex;
  align-items: flex-start; 
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1.5rem;
}

/* Styling for the new logo container and image */
.education-logo-container {
    margin-right: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0; 
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--background);
}

.education-logo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.5rem;
    object-fit: contain;
    margin: 0;
}

.experience-header {
  display: flex;
  align-items: flex-start; 
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1.5rem;
}

/* Styling for the logo container - NOW JUST FOR MARGIN/SPACING */
.education-logo-container {
    /* Removed padding, border, and background from the box */
    padding: 0;
    border: none;
    background: transparent;
    
    /* Ensure flex properties are maintained */
    display: flex;
    align-items: flex-start; /* Align logo to the top */
    flex-shrink: 0; 
    margin-top: 0.25rem; /* Slight top margin to align it better with the text block */
}

.education-logo {
    /* Logo size remains large */
    width: 4.5rem;
    height: 4.5rem;
    
    /* Simplified styling for a 'floating' look */
    border-radius: 0.5rem; 
    object-fit: contain;
    margin: 0;
    padding: 0; /* Ensure the image itself has no internal padding */
    border: none; /* Remove border from the image */
    background: transparent; /* Remove background from the image */
}

/* Text block next to the logo (Institution Name and Degree/Exam) */
.experience-header > div:nth-child(2) {
    flex-grow: 1;
    /* Removed padding-top here as we adjusted the logo container margin instead */
    padding-top: 0; 
}

.experience-title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.experience-company {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    font-weight: 400;
}


/* Badges Alignment and Stacking */
.education-details-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    padding-top: 0.25rem;
}

/* ==========================================================================
   About Section Education Sub-List Customization
   ========================================================================== */

.education-subheader {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.education-sub-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    text-align: center;
}

/* PC WIDTH CONSTRAINT */
@media (min-width: 768px) {
    .about-section .experience-list {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 2.5rem;
    }
}

/* General styling for badges in the Education section */
.timeline-badge,
.marks-badge {
    display: inline-flex;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
    white-space: nowrap;
}

.timeline-badge {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.current-timeline {
    background: var(--primary);
    color: var(--primary-foreground);
}

.marks-badge {
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .experience-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
      padding: 1rem 0;
    }

    .education-logo-container {
        margin-bottom: 0.5rem;
        width: 3.5rem;
        height: 3.5rem;
        padding: 0.2rem;
    }
    .education-logo {
        width: 3rem;
        height: 3rem;
    }
    .education-details-group {
        align-items: flex-start;
    }
}

/* ==========================================================================
   Co-Curricular Activities Logo and Layout Fixes
   ========================================================================== */

/* 1. Ensure logo, text, and timeline are aligned in the header */
.activity-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align all items to the top of the header */
    padding-top: 1.5rem; /* Ensure top padding matches existing card header */
    padding-bottom: 1.5rem; /* Ensure bottom padding matches existing card header */
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
}

/* 2. Group the Logo and Text together and allow them to take up space */
.activity-header-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem; /* Spacing between logo and title text */
    flex-grow: 1; /* Allow this group to take up most of the space */
}

/* 3. Re-style the period badge for better appearance next to the logo setup */
.activity-period {
    /* Base styles from original CSS */
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    width: fit-content;
    
    /* Alignment adjustment */
    flex-shrink: 0; /* Prevents the period from getting squished */
    margin-top: 0.1rem; /* Adjust to align with the text block */
}

/* 4. Mobile adjustment for stacking */
@media (max-width: 768px) {
    .activity-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .activity-header-content {
        flex-grow: 0;
    }

    .activity-period {
        margin-top: 0;
    }
}
/* Activities Section */
.activities-section {
  padding: 5rem 0;
  background: rgba(var(--card), 0.06);
}

.activities-grid {
  display: grid;
  gap: 2rem;
}

.activity-card {
  display: flex;
  flex-direction: column;
}

.activity-card .card {
  flex-grow: 1;
}

.activity-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.activity-organization {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.activity-period {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  width: fit-content;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Co-Curricular Activities - Top-Stacked Logo Layout
   ========================================================================== */

/* 1. Define Card Header for Stacking and Positioning */
.activity-card .card-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    border-bottom: none;
}

/* 2. Logo Block Styling */
.activity-logo-block {
    width: 100%;
    margin-bottom: 0.75rem;
}

/* 3. Logo Alignment and Size */
.activity-logo-block .education-logo-container {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.activity-logo-block .education-logo {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border-radius: 0.5rem;
    object-fit: contain;
    margin: 0;
    border: none;
    background: transparent;
}

/* 4. Reposition the Timeline Badge to avoid overflow */
.activity-period-badge {
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
    background: var(--secondary);
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
}

.activity-card .card-content {
    /* Reduce the top padding to tighten the space between the header details and description */
    padding-top: 0rem; 
}

/* 5. Mobile Adjustments */
@media (max-width: 768px) {
    .activity-card .card-header {
        padding-bottom: 3rem;
    }
    .activity-period-badge {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

.interview-collapsible-content p,
.interview-collapsible-content li {
    color: var(--muted-foreground);
    line-height: 1.7; /* Increased line height slightly for better spacing */
}

/* ADDED: Add padding below each round list item for clear separation */
.interview-collapsible-content .achievements-list li {
    margin-bottom: 1.25rem; /* Adds space after each round */
}

/* 2. Target Headings and Strong/Bolded words to use the sharpest foreground color (White in dark mode) */
.interview-collapsible-content .achievements-title,
.interview-collapsible-content strong {
    color: var(--foreground);
    font-weight: 600;
}

/* 3. Ensure the list items headings (e.g., "Round 1 (MCQs)") use the sharp color */
.achievements-list li strong:first-child {
    color: var(--foreground);
    font-weight: 700;
}

/* ==========================================================
   🌿 Subtle 3D Mint-Themed Card Depth + Interactive Tilt
   ========================================================== */

/* --- Base Card Depth --- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 15px rgba(67, 197, 158, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d; /* Enable 3D perspective */
  will-change: transform;
}

/* --- Inner Light Overlay --- */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(0,0,0,0.05));
  opacity: 0.5;
  pointer-events: none;
}

/* --- Hover Lift --- */
.card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 12px 25px rgba(67, 197, 158, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* --- Press Down Effect --- */
.card:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 3px 8px rgba(67, 197, 158, 0.05);
}

/* --- Highlighted (Featured) Cards --- */
.card.featured {
  box-shadow: 0 10px 25px rgba(67, 197, 158, 0.18),
              inset 0 1px 0 rgba(255,255,255,0.6);
  border-color: rgba(67,197,158,0.4);
}

/* --- Button Depth --- */
.btn-primary {
  box-shadow: 0 4px 10px rgba(67, 197, 158, 0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 197, 158, 0.45);
}

/* ==========================================================
   🧠 Parallax Tilt Effect (Optional but Beautiful)
   ========================================================== */
.card[data-tilt] {
  transform: perspective(800px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
}

.card[data-tilt]:hover {
  box-shadow: 0 12px 25px rgba(67, 197, 158, 0.2),
              inset 0 1px 0 rgba(255,255,255,0.4);
}

.card[data-tilt]:active {
  transform: perspective(800px) rotateX(0deg) rotateY(0deg) scale(0.98);
}

/* --- Smooth 3D hover tilt interaction --- */
.card[data-tilt]:hover::before {
  opacity: 0.1;
}

/* Add this lightweight JS (optional) for the actual tilt motion */

/* ==========================================================
   🌿 Refined Mint 3D Card & Button Design
   ========================================================== */

/* --- Clean Matte Card Base --- */
.card {
  background: linear-gradient(145deg, rgba(245, 255, 252, 0.85), rgba(232, 255, 248, 0.9));
  border: 1px solid rgba(67, 197, 158, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(67, 197, 158, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* --- Hover: Depth + Edge Glow --- */
.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(67, 197, 158, 0.5);
  box-shadow: 0 15px 35px rgba(67, 197, 158, 0.25),
              0 5px 10px rgba(0, 0, 0, 0.08);
}

/* --- Gentle sheen effect --- */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(67, 197, 158, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover::after {
  opacity: 1;
}

/* --- Active press feel --- */
.card:active {
  transform: translateY(-3px) scale(0.995);
  box-shadow: 0 6px 10px rgba(67, 197, 158, 0.15);
}

/* --- Make sure Project Cards also inherit the same look --- */
.project-card {
  background: linear-gradient(145deg, rgba(245, 255, 252, 0.85), rgba(232, 255, 248, 0.9));
  border: 1px solid rgba(67, 197, 158, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(67, 197, 158, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  transform-style: preserve-3d;
}
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(67, 197, 158, 0.25);
}
.project-card:hover .project-image {
  transform: scale(1.1);
}

/* ==========================================================
   🧠 Parallax Tilt Effect (Fixed for Projects Too)
   ========================================================== */
.card, .project-card {
  perspective: 1000px;
}
.card[data-tilt], .project-card[data-tilt] {
  transition: transform 0.25s ease-out, box-shadow 0.4s ease;
}
.card[data-tilt]:hover, .project-card[data-tilt]:hover {
  box-shadow: 0 15px 35px rgba(67, 197, 158, 0.25);
}

/* ==========================================================
   🌿 Refined Mint Cards — Visible Depth (Light + Dark Mode)
   ========================================================== */

/* Light mode cards */
.card,
.project-card {
  background: linear-gradient(145deg, #d8f8ef, #b9f0dc); /* minty gradient */
  border: 1px solid rgba(0, 100, 80, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 80, 60, 0.1),
              0 2px 5px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.3s ease;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Hover: more color and light */
.card:hover,
.project-card:hover {
  background: linear-gradient(145deg, #b9f0dc, #a2ead0);
  box-shadow: 0 14px 35px rgba(0, 80, 60, 0.25),
              0 6px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(0, 100, 80, 0.4);
}

/* Dark mode cards */
.dark .card,
.dark .project-card {
  background: linear-gradient(145deg, #10211d, #0c1815);
  border: 1px solid rgba(67, 197, 158, 0.3);
  box-shadow: 0 6px 20px rgba(67, 197, 158, 0.1),
              0 2px 5px rgba(0, 0, 0, 0.4);
}

.dark .card:hover,
.dark .project-card:hover {
  background: linear-gradient(145deg, #15352f, #112823);
  box-shadow: 0 15px 35px rgba(67, 197, 158, 0.25),
              0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: rgba(67, 197, 158, 0.5);
}

/* Refined button hover — maintain text contrast */
.btn-primary {
  background: linear-gradient(135deg, #44caa0, #3cb391);
  color: #fff;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34a885, #2d8e74);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(67, 197, 158, 0.4);
}

.about-3d {
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(67,197,158,0.1), transparent 70%);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(67,197,158,0.1);
}

#aboutModel {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

/* ==========================================================
   🌿 About Section Layout with 3D Model
   ========================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Left Side */
.about-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Right Side (3D Model Container) */
.about-right {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(67, 197, 158, 0.08), transparent 80%);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(67, 197, 158, 0.1);
  height: 500px;
}

.about-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* slightly thinner right side */
  align-items: center;
  gap: 2rem;
  height: 85vh; /* taller overall section */
}

.about-right {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 85vh;
  background: radial-gradient(circle at center, rgba(15, 25, 25, 0.9), rgba(5, 10, 10, 0.95));
  border-radius: 22px;
  box-shadow:
    inset 0 0 25px rgba(0, 255, 200, 0.08),
    0 0 35px rgba(0, 255, 180, 0.1);
  position: relative;
  overflow: hidden;
}

/* the actual canvas */
#aboutModel {
  width: 100%;
  height: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  background: transparent;
  filter: drop-shadow(0 0 40px rgba(0, 255, 180, 0.2));
  transition: transform 0.4s ease;
}

.about-right:hover #aboutModel {
  transform: scale(1.02);
}

/* ===== Typing Animation for Name ===== */
.typewriter {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 2.8rem;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

#typed-name {
  color: #3ecf8e; /* your green */
  padding-right: 2px;
  animation: blink 0.8s infinite;
  display: block;
  font-weight: bold;
  font-size: 5rem;
}

/* ==========================================================
   🌐 GitHub 3D Section Layout
   ========================================================== */

.github-3d-section .section-title {
  font-size: 1.5rem;
  color: var(--text-color);
  z-index: 2;
  pointer-events: none; /* so clicks go through canvas if needed */
}

.github-3d-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 0 20px; /* reduce bottom padding */
  width: 100%;
  overflow: visible;
  background: transparent;
}

#githubModel {
  position: relative;
  width: 90%;
  max-width: 700px;  /* keep it large */
  height: 500px;
  margin-bottom: -80px; /* pull up over next section */
  background: transparent;
  filter: drop-shadow(0 0 40px rgba(0, 255, 180, 0.3));
  z-index: 1;
  transition: transform 0.4s ease; /* smooth hover scaling */
  cursor: pointer;
}

#githubModel:hover {
  transform: scale(1.05); /* slightly enlarge on hover */
}
.hero-content {
    padding-top: 20px;
    margin-top: 0;
}

@media (max-width: 768px) {

    /* 1. Adjust the main layout for a single column */
    .about-grid {
        /* Switch from 1fr 1fr to a single column */
        grid-template-columns: 1fr;
        /* Reduce the gap for tighter mobile layout */
        gap: 3rem; 
    }

    /* 2. Remove fixed heights and simplify the model container */
    .about-container {
        /* Ensure it's a single column layout if you use this class */
        grid-template-columns: 1fr;
        /* Allow content height to dictate section height */
        height: auto; 
    }
    
    /* 3. Adjust the 3D Model Container */
    .about-right {
        /* Remove the fixed height to prevent excessive scrolling/whitespace */
        height: 50vh; /* Set a relative height, or use 'auto' */
        min-height: 400px; /* Ensure a minimum size for the model */
        /* Change the order to place the model below the text on mobile */
        order: 2;
    }

    /* 4. Adjust the Left Content (Text and Facts) */
    .about-left {
        /* Ensure the text is at the top (before the model) */
        order: 1;
    }
    
    /* 5. Ensure the Canvas scales within the new container */
    #aboutModel {
        /* Remove max-width so it can fill the container width if needed */
        max-width: 100%;
        /* Maintain a reasonable aspect ratio */
        aspect-ratio: 3 / 4; 
    }
}

.greeting {
  color: #424449;
}

.dark .greeting {
  color: white;
}

.skills-card-grid {
    margin-top: 4rem; 
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 2rem;
}

/* ==========================================================================
   Skills Section - Vertical List Refinement
   ========================================================================== */

/* 1. Ensure the container uses a block layout */
.skill-category-card .skills-content {
    display: block;
    padding: 1.5rem; /* Standard padding */
}

/* 2. Style the individual skill row (the "line") */
.skill-item-row {
    display: flex; /* Use flex to align the icon and text */
    align-items: center;
    padding: 0.5rem 0; /* Vertical padding for breathing room */
    margin-bottom: 0.5rem; /* Space before the divider */
    
    /* Use a solid border for a clean, professional divider */
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

/* 3. Style the text and icon */
.skill-icon {
    /* Use the primary color for a small bullet point */
    color: var(--primary); 
    font-size: 0.75rem;
    margin-right: 0.75rem;
    line-height: 1;
    font-weight: 900;
}

.skill-text {
    /* Make the skill name bold and prominent */
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

/* 4. Remove the divider line and margin from the LAST skill item */
.skill-item-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* 5. Add a subtle hover effect to the row */
.skill-item-row:hover {
    background-color: var(--secondary); /* A light background highlight on hover */
    padding-left: 0.5rem; /* Slide effect */
    border-radius: 4px;
}

/* Ensure the hover effect looks good near the edges of the content area */
.skill-category-card .skills-content:hover .skill-item-row {
    margin: 0; /* Reset margin on all rows during hover to allow background to fill */
    padding: 0.5rem 0; /* Reset padding */
    padding-left: 0.5rem; /* Keep the slide */
}

/* ==========================================================================
   Skills Section - Vertical List Refinement
   ========================================================================== */

/* 1. Ensure the container uses a block layout */
.skill-category-card .skills-content {
    /* Use 'block' layout for vertical stacking of rows */
    display: block; 
    padding: 1.5rem; 
}

/* 2. Style the individual skill row (the "line") */
.skill-item-row {
    display: flex; /* Use flex to align the icon and text */
    align-items: center;
    padding: 0.6rem 0; /* Increased vertical padding for more breathing room */
    
    /* Subtle divider line using the light border color */
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* 3. Style the icon (The Mint Bullet) */
.skill-icon {
    color: var(--primary); 
    font-size: 0.6rem; /* Small, clear bullet */
    margin-right: 1rem;
    line-height: 1;
    font-weight: 900;
    opacity: 0.8;
    flex-shrink: 0;
}

/* 4. Style the text (The Skill Name) */
.skill-text {
    /* Make the skill name bold and prominent */
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    transition: color 0.2s ease;
}

/* 5. Remove the divider line and padding from the LAST skill item */
.skill-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 6. Add a subtle hover effect to the row */
.skill-item-row:hover {
    /* Subtle background highlight (use secondary color for light) */
    background-color: var(--secondary); 
    transform: translateX(4px); /* Slide effect */
}

/* Dark Mode adjustment for hover background */
.dark .skill-item-row:hover {
    background-color: rgba(67, 197, 158, 0.05);
}

/* Ensure skill text color is emphasized on hover */
.skill-item-row:hover .skill-text {
    color: var(--primary);
}

/* --- Grid Layout (Keep the horizontal design) --- */
.skills-card-grid {
    margin-top: 4rem; 
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for horizontal display */
    gap: 2rem;
}

/* Tablet and Mobile adjustments (for responsiveness) */
@media (max-width: 900px) {
    .skills-card-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablets */
    }
}

@media (max-width: 600px) {
    .skills-card-grid {
        grid-template-columns: 1fr; /* 1 card per row on small phones */
    }
}

/* 2. Style the individual skill row (the "line") */
.skill-item-row {
    display: flex;
    align-items: center;
    /* Permanent light background and padding */
    padding: 0.6rem 0.5rem 0.6rem 0.6rem; /* Increased left padding for bullet clearance */
    background-color: var(--secondary);
    border-radius: 4px;
    
    /* Subtle divider spacing */
    margin-bottom: 0.5rem; 
    border-bottom: 1px solid var(--border);
    
    /* Add transition for the hover effects */
    transition: all 0.2s ease; 
}

/* Dark Mode permanent background */
.dark .skill-item-row {
    background-color: rgba(67, 197, 158, 0.08); /* A slightly darker permanent tint */
}

/* 4. Style the text (The Skill Name) - Permanent Color */
.skill-text {
    font-size: 1rem;
    font-weight: 600;
    /* Use the vibrant mint color for contrast */
    color: var(--primary); 
    transition: color 0.2s ease;
}

/* Remove the divider line and padding from the LAST skill item */
.skill-item-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* 6. Add the combined hover effect: lift + color shift */
.skill-item-row:hover {
    /* Subtle lift and slide effect */
    transform: translateY(-2px) scale(1.005); 
    
    /* Slight background change on hover for emphasis */
    background-color: var(--primary); 
    box-shadow: 0 4px 10px rgba(67, 197, 158, 0.3); /* Mint glow on hover */
}

/* Change skill text color to white/foreground on hover for maximum contrast */
.skill-item-row:hover .skill-text {
    color: var(--primary-foreground); /* White text (or dark foreground in dark mode) */
}

/* Change bullet color to white/foreground on hover */
.skill-item-row:hover .skill-icon {
    color: var(--primary-foreground);
    opacity: 1;
}

/* Dark Mode hover background */
.dark .skill-item-row:hover {
    background-color: var(--primary); /* Use the bright mint color on hover */
    box-shadow: 0 4px 10px rgba(67, 197, 158, 0.5);
}

/* ==========================================================================
   Certificates Section - Hover Reveal (FINAL ALIGNMENT & DARK MODE FIX)
   ========================================================================== */

/* grid setup remains the same */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 1024px) {
  .certificates-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .certificates-grid { grid-template-columns: 1fr; }
}

/* card base */
.certificate-card {
  position: relative;
  overflow: hidden;
  height: 380px;
  border-radius: var(--radius, 0.75rem);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(67, 197, 158, 0.1);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  cursor: pointer;
}
.certificate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(67, 197, 158, 0.3); 
}

/* content wrapper (Flex container for name, image, and details) */
.card-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column; /* Stacks title, image container, and details vertically */
  z-index: 1;
}

/* --- FRONT CONTENT ALIGNMENT --- */

/* 1. Certificate Name (Normal Flow) */
.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

/* 2. Image container (Pushes content down) */
.cert-image-container {
    flex-grow: 1; /* Ensures image takes max space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0 2.5rem 0; /* Space for the author name at the bottom */
}

.cert-image {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius, 0.75rem) - 4px);
  transition: transform 0.4s ease-out; 
}
.certificate-card:hover .cert-image { transform: scale(1.08); } 

/* 3. Author Name (Fixed at bottom-left of the card) */
.cert-provider {
  position: absolute;
  bottom: 1rem; /* Aligns to bottom edge padding */
  left: 1rem; /* Aligns to left edge padding */
  font-size: 0.9rem;
  color: var(--primary);
  opacity: 0.95;
  z-index: 2; /* Ensures it sits over the image container */
}


/* --- DETAILS overlay (The part that slides up) --- */
.details {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(67, 197, 158, 0.0) 0%, rgba(10, 25, 20, 0.9) 45%);
  color: var(--primary-foreground); 
  
  transform: translateY(100%); /* Start completely off screen */
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  z-index: 4;
  text-align: left;
  max-height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

/* details content style */
.details ul { list-style: disc; padding-left: 1.25rem; margin: 0; }
.details li { 
  margin-bottom: 0.55rem; 
  font-size: 0.95rem; 
  line-height: 1.45; 
}
.details strong { font-weight: 700; text-transform: none; }

/* SHOW details on hover */
.certificate-card:hover .details {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: auto;
}

/* Fade out front content on hover */
.certificate-card:hover .card-content > :not(.details) {
  opacity: 0.1; 
  transition: opacity 0.3s ease-out;
  pointer-events: none;
}

/* --- DARK MODE VISIBILITY FIXES --- */

.dark .details { 
  /* Use a dark gradient for the background */
  background: linear-gradient(180deg, rgba(67, 197, 158, 0.02) 0%, rgba(10, 20, 20, 0.9) 45%); 
  color: white; /* Default light text */
}

/* FIX: Ensure all text elements in details are explicitly bright white/light */
.dark .details li,
.dark .details strong,
.dark .details h4 {
  color: white; 
}