/* RESET & CORE VARIABLES */
:root {
  --bg-dark: #0a0a0a;
  --card-bg: #141414;
  --text-main: #ffffff;
  --text-muted: #888888;
  --accent: #d4fc79;
  /* Lime Green - fresh/innovative */
  /* --accent: #cb9bfa; Alternative Purple */
  --border-color: #222;
  --font-main: 'Inter', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  cursor: none;
  /* We will use custom cursor */
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* CUSTOM CURSOR */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  margin-left: 2rem;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HERO SECTION - IMPACTFUL */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 2rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease forwards;
  opacity: 0;
}

.hero-title {
  font-size: 6vw;
  line-height: 1;
  font-weight: 800;
  color: #fff;
  -webkit-text-stroke: 0;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
  position: relative;
}

.hero-title span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
}

.hero-desc {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* BENTO GRID LAYOUT */
.bento-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.5rem;
}

/* CARD STYLES */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* SPECIFIC CARDS */
.card-profile {
  grid-column: span 1;
  /* Narrow vertical slice */
  grid-row: span 2;
  /* Tall portrait shape */
  padding: 0;
  /* Full image */
}

.card-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* Fix for face visibility */
  transition: transform 0.5s;
}

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

.card-about {
  grid-column: span 2;
  grid-row: span 1;
  justify-content: center;
}

.card-tech {
  grid-column: span 2;
  grid-row: span 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  border: 1px solid transparent;
  transition: 0.3s;
}

.tech-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

/* EXPERIENCE SLIDESHOW CARD (Preserving the functionality) */
.card-experience {
  grid-column: span 4;
  /* Full width */
  grid-row: span 2;
  padding: 0;
  background: #000;
  display: flex;
}

.experience-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.exp-sidebar {
  width: 40%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-color);
}

.exp-details {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  height: 0;
  overflow: hidden;
}

.exp-details.active {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  display: block;
}

.exp-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.exp-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

.exp-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.exp-visual {
  width: 60%;
  position: relative;
  overflow: hidden;
}

.exp-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.exp-img.active {
  opacity: 1;
}

/* PROJECTS CAROUSEL (Horizontal Scroll) */
.card-projects {
  grid-column: span 4;
  overflow-x: auto;
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: transparent;
  border: none;
}

.project-item {
  min-width: 300px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: 0.3s;
}

.project-item:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.project-thumb {
  height: 180px;
  background-color: #222;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.project-item:hover .project-thumb img {
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
}

.project-info h4 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.project-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.project-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

/* SOCIALS */
.card-social {
  grid-column: span 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  gap: 1rem;
}

.social-icon {
  color: #fff;
  transition: 0.3s;
}

.social-icon:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-profile {
    grid-column: span 2;
  }

  .card-about {
    grid-column: span 2;
  }

  .card-tech {
    grid-column: span 2;
  }

  .card-experience {
    grid-column: span 2;
    flex-direction: column;
  }

  .exp-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .exp-visual {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
  }

  .hero-title {
    font-size: 3rem;
  }
}

/* ANIMATIONS */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }

  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }

  from {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-10px) translateX(-50%);
  }

  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* RESTORED TIMELINE STYLES (ADAPTED FOR DARK THEME) */
#work-experience {
  grid-column: span 4;
  /* Takes full width in bento grid usually, but we will move it out */
  padding: 3rem 0;
  color: #fff;
}

#work-experience h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--accent);
}

.work-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.timeline-container {
  position: relative;
  padding: 2rem 0;
  margin: 0 auto;
  max-width: 1100px;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  /* Subtle dark mode line */
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 80px;
}

.timeline-icon {
  position: absolute;
  left: 15px;
  width: 44px;
  /* Slightly smaller for modern look */
  height: 44px;
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(212, 252, 121, 0.2);
}

.timeline-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.timeline-content-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.timeline-content {
  flex: 1;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-slideshow {
  flex: 0 0 350px;
  /* Larger image area */
  height: 250px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #000;
}

.slideshow-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slideshow-image.active {
  opacity: 1;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-family: 'Inter', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-content h4 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.timeline-content h4 span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 1.1rem;
  display: block;
  margin-top: 0.2rem;
}

.timeline-content ul {
  list-style: none;
  margin-top: 1rem;
}

.timeline-content ul li {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.timeline-content ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 900px) {
  .timeline-content-wrapper {
    flex-direction: column;
  }

  .timeline-slideshow {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 600px) {
  .timeline-container::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-icon {
    left: 0;
  }
}

/* BLOGS SECTION */
#blogs {
  padding: 2rem 0;
}

#blogs h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--accent);
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-info {
  padding: 1.5rem;
}

.blog-info h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.blog-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.blog-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* EQUAL WIDTH TIMELINE */
.timeline-content-wrapper {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  /* Stretch to matching heights */
}

.timeline-content {
  flex: 1;
  /* Shares equal space */
  width: 50%;
}

.timeline-slideshow {
  flex: 1;
  /* Shares equal space */
  width: 50%;
  height: auto;
  /* Allow it to grow/shrink or fixed */
  min-height: 350px;
  /* Ensure substantial height */
}

/* PROJECT CAROUSEL STYLES */
.project-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
  overflow: hidden;
  padding: 1rem 3rem;
  /* Space for arrows */
}

.project-track-container {
  overflow: hidden;
  border-radius: 20px;
}

.project-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

.project-card-carousel {
  flex: 0 0 100%;
  /* Show 1 card mobile, adjust for desktop */
  min-width: 300px;
  /* Minimum width */
  background: var(--card-bg);
  /* Dark card background */
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .project-card-carousel {
    flex: 0 0 calc(33.333% - 14px);
    /* Show 3 cards */
  }
}

.project-image-carousel {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #eee;
}

.project-info-carousel {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info-carousel h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.project-info-carousel p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-info-carousel a {
  margin-top: auto;
  color: var(--accent);
  /* Lime Green link */
  font-weight: 600;
  text-decoration: none;
}

.project-info-carousel a:hover {
  text-decoration: underline;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #6200ea;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: #6200ea;
  color: #fff;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}


/* TESTIMONIALS SECTION */
#testimonials {
  padding: 4rem 2rem;
  text-align: center;
}

#testimonials h3 {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--accent);
}

.testimonial-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-wrapper {
  overflow: hidden;
  border-radius: 20px;
  background: #1a1a1a;
  /* Darker bg for contrast */
  border: 1px solid var(--border-color);
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial {
  flex: 0 0 100%;
  padding: 3rem;
  text-align: left;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-header img.profile {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.testimonial-header h4 {
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}

.testimonial-header p {
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0;
}

.testimonial-text {
  color: #ccc;
  font-style: italic;
  line-height: 1.8;
  font-size: 1.05rem;
}

.read-more-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  margin-top: 1rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.t-dot {
  width: 10px;
  height: 10px;
  background: #444;
  border-radius: 50%;
  cursor: pointer;
}

.t-dot.active {
  background: var(--accent);
}

/* UPDATED WORK EXPERIENCE - WHITE BG & WIDER CONTENT */
.timeline-content-wrapper {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  /* Stretch ensures both sides match height */
}

.timeline-content {
  flex: 2;
  /* Content takes 2/3 of space (wider) */
  background-color: var(--card-bg) !important;
  /* Forces Dark BG */
  color: #fff !important;
  /* White Text */
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  /* Dark border */
}

/* Update text colors inside dark box */
.timeline-content h4 {
  color: #fff !important;
  /* White heading */
}

.timeline-content h4 span {
  color: var(--text-muted) !important;
  /* Grey subtitle */
}

.timeline-content ul li {
  color: #ccc !important;
  /* Light grey list items */
}

/* Slideshow matches height */
.timeline-slideshow {
  flex: 1;
  /* Slideshow takes 1/3 of space */
  width: auto;
  /* Let flex handle width */
  height: auto;
  /* Allow auto height to match content via align-items: stretch */
  min-height: 0;
  /* Removing fixed min-height to allow matching */
  background: #000;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

/* Ensure images fill the stretched container */
.slideshow-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cover ensures no distortion */
}

/* Mobile responsive adjustments */
@media (max-width: 900px) {
  .timeline-content-wrapper {
    flex-direction: column;
  }

  .timeline-slideshow {
    min-height: 250px;
    /* Restore min-height for mobile when stacked */
    flex: none;
    width: 100%;
  }
}

/* ACHIEVEMENTS SECTION */
#achievements {
  padding: 3rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

#achievements h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--accent);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem;
}

.achievement-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.achievement-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.achievement-item .achievement-name {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.achievement-item .achievement-org {
  font-size: 0.85rem;
  color: #aaa;
  font-style: italic;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.achievement-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .achievements-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* CONTACT SECTION */
#contact {
  padding: 4rem 2rem;
  max-width: 800px;
  /* Aligned better for form */
  margin: 0 auto;
  text-align: center;
}

#contact h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.contact-desc {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s, opacity 0.2s;
  align-self: center;
  min-width: 200px;
}

.contact-form button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* CAROUSEL BUTTON ALIGNMENT FIX */
/* Positioning them correctly relative to container */
.project-carousel-container {
  position: relative;
  padding: 0;
  /* Remove side padding to let buttons float or overlap if needed, or keep for spacing */
  /* Let's keep side padding but position buttons effectively */
  padding: 0 4rem;
}

.carousel-btn {
  /* Use flex positioning if possible, or correct absolute */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* NEW BENTO CARDS */
.card-status {
  background: rgba(20, 20, 20, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(212, 252, 121, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.pulsing-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 252, 121, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(212, 252, 121, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(212, 252, 121, 0);
  }
}

.card-location {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(145deg, var(--card-bg), #1a1a1a);
}

.location-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.location-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.card-roles {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.roles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.role-tag {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: 0.3s;
}

.role-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.about-metrics {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.metric-item {
  text-align: center;
}

.metric-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Update Card Grid Spans if needed */
.card-profile {
  grid-column: span 1;
  grid-row: span 2;
}

.card-about {
  grid-column: span 2;
}

.card-status {
  grid-column: span 1;
}

.card-location {
  grid-column: span 1;
}

.card-roles {
  grid-column: span 2;
}

.card-tech {
  grid-column: span 1;
}

.card-social {
  grid-column: span 4;
  justify-content: center;
  gap: 3rem;
}

@media (max-width: 768px) {
  .card-profile {
    grid-column: span 1;
    grid-row: span 1;
    height: 300px;
  }

  .card-about {
    grid-column: span 1;
  }

  .card-status {
    grid-column: span 1;
  }

  .card-location {
    grid-column: span 1;
  }

  .card-roles {
    grid-column: span 1;
  }

  .card-tech {
    grid-column: span 1;
  }

  .card-social {
    grid-column: span 1;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  /* Fallback to single column for simplicity on small screens */
}

/* NEW RECRUITER-FRIENDLY BENTO LAYOUT */
.bento-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  /* Sidebar | Content */
  grid-template-rows: auto auto auto;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* 1. IDENTITY COLUMN */
.card-profile {
  grid-column: span 1;
  grid-row: span 3;
  /* Takes up full height of left column */
  height: 100%;
  min-height: 500px;
  padding: 0;
  position: relative;
  border: 1px solid var(--border-color);
}

.profile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  justify-content: center;
}

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

.social-row a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
  opacity: 0.8;
}

.social-row a:hover {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-3px);
}

/* 2. NARRATIVE CARD */
.card-bio {
  grid-column: span 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio-header h3 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}

.bio-text {
  font-size: 1rem;
  /* base size */
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.bio-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-val {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: #333;
}

/* 3. LOGISTICS CARD (Recruiter Signals) */
.card-logistics {
  grid-column: span 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Available | Location */
  gap: 2rem;
}

.logistics-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.logistics-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #555;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-badge,
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

.sub-text {
  font-size: 0.8rem;
  color: #777;
  margin-left: 5px;
  font-weight: 400;
}

.logistics-group.full-width {
  grid-column: span 2;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #222;
}

.roles-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roles-tags span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #ddd;
}

/* 4. TECH STACK CARD */
.card-stack {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stack-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1rem;
  font-weight: 600;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .card-profile {
    grid-row: span 1;
    min-height: 400px;
  }

  .card-bio,
  .card-logistics,
  .card-stack {
    grid-column: span 1;
  }
}

/* --- 6-SECOND SCAN REDESIGN --- */

/* Simplified Layout: 2 Columns (Profile | Details) */
.bento-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  /* Strong Visual | Strong Info */
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Profile Card - Auto height to match neighbor */
.card-profile {
  grid-column: span 1;
  height: auto;
  /* Let grid stretch it */
  min-height: 0;
  /* Remove forcing */
  border: 1px solid #333;
  display: flex;
  /* Fix for responsive img */
  flex-direction: column;
}

.card-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The "Scan" Card - One container for all info to reduce eye-jumps */
.card-scan {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem;
  background: var(--card-bg);
  /* Keep consistency */
  border: 1px solid var(--border-color);
}

.scan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.scan-title {
  font-size: 3.2rem;
  /* Massive Headline */
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.accent-text {
  color: var(--accent);
  display: block;
  /* Stack it for impact */
  font-size: 2.2rem;
  font-weight: 400;
  /* Lighter weight for contrast */
}

/* High-Visibility Status Badge */
.scan-status {
  background: rgba(212, 252, 121, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(212, 252, 121, 0.1);
}

.pulsing-dot-large {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.scan-subtitle {
  font-size: 1.25rem;
  color: #aeaeae;
  margin-bottom: 3rem;
  max-width: 90%;
  line-height: 1.6;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

.scan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: auto;
}

.scan-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.scan-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #666;
  font-weight: 700;
}

.scan-val {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
}

.scan-col.full {
  grid-column: span 2;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #222;
}

.tech-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-ticker span {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #ddd;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .card-profile {
    height: 400px;
    min-height: 0;
  }

  .scan-title {
    font-size: 2.5rem;
  }

  .accent-text {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .card-scan {
    padding: 2rem;
  }

  .scan-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .scan-col.full {
    grid-column: span 1;
  }

  .scan-header {
    flex-direction: column-reverse;
    /* Status on top? or just stack */
  }
}