/* ============================================
   EXPERIENCE SECTION - STUNNING REDESIGN
   Beautiful UI for Light & Dark Modes
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
  /* Primary Colors */
  --exp-primary: #ef3724;
  --exp-primary-light: #ff6b4a;
  --exp-primary-dark: #c92918;
  --exp-secondary: #ffd700;
  --exp-accent: #00d4ff;
  --exp-success: #2ed573;

  /* Dark Mode (Default) */
  --exp-bg-main: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  --exp-bg-card: rgba(255, 255, 255, 0.03);
  --exp-bg-card-hover: rgba(255, 255, 255, 0.08);
  --exp-bg-glass: rgba(255, 255, 255, 0.05);
  --exp-border: rgba(255, 255, 255, 0.1);
  --exp-border-hover: rgba(239, 55, 36, 0.5);
  --exp-text-primary: #ffffff;
  --exp-text-secondary: rgba(255, 255, 255, 0.7);
  --exp-text-muted: rgba(255, 255, 255, 0.5);
  --exp-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --exp-shadow-glow: 0 0 40px rgba(239, 55, 36, 0.3);
  --exp-timeline-line: linear-gradient(180deg, var(--exp-primary) 0%, var(--exp-secondary) 50%, var(--exp-accent) 100%);
  --exp-card-gradient: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
  --exp-header-gradient: linear-gradient(135deg, rgba(239, 55, 36, 0.15) 0%, rgba(255, 215, 0, 0.1) 100%);
}

/* Light Mode Overrides */
:root:not([data-theme="dark"]) {
  --exp-bg-main: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  --exp-bg-card: rgba(255, 255, 255, 0.9);
  --exp-bg-card-hover: rgba(255, 255, 255, 1);
  --exp-bg-glass: rgba(255, 255, 255, 0.8);
  --exp-border: rgba(0, 0, 0, 0.08);
  --exp-border-hover: rgba(239, 55, 36, 0.4);
  --exp-text-primary: #1a1a2e;
  --exp-text-secondary: #4a4a6a;
  --exp-text-muted: #6c757d;
  --exp-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --exp-shadow-glow: 0 0 40px rgba(239, 55, 36, 0.15);
  --exp-card-gradient: linear-gradient(145deg, rgba(255,255,255,1) 0%, rgba(248,249,250,1) 100%);
  --exp-header-gradient: linear-gradient(135deg, rgba(239, 55, 36, 0.08) 0%, rgba(255, 215, 0, 0.05) 100%);
}

/* ========== MAIN SECTION ========== */
.experience-section-new {
  position: relative;
  padding: 60px 0;
  overflow: visible;
}

.experience-section-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(239, 55, 36, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ========== TIMELINE CONTAINER ========== */
.experience-timeline {
  position: relative;
  padding-left: 40px;
  z-index: 1;
}

/* Animated Timeline Line */
.experience-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--exp-timeline-line);
  border-radius: 4px;
  box-shadow:
    0 0 20px rgba(239, 55, 36, 0.4),
    0 0 40px rgba(255, 215, 0, 0.2);
  animation: timelinePulse 3s ease-in-out infinite;
}

@keyframes timelinePulse {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(239, 55, 36, 0.4), 0 0 40px rgba(255, 215, 0, 0.2);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 30px rgba(239, 55, 36, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
  }
}

/* ========== COMPANY CARD ========== */
.company-card {
  position: relative;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(40px);
  animation: cardSlideIn 0.8s ease-out forwards;
}

.company-card:nth-child(1) { animation-delay: 0.1s; }
.company-card:nth-child(2) { animation-delay: 0.3s; }
.company-card:nth-child(3) { animation-delay: 0.5s; }
.company-card:nth-child(4) { animation-delay: 0.7s; }

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

/* ========== TIMELINE CONNECTOR ========== */
.timeline-connector {
  position: absolute;
  left: -40px;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--exp-primary) 0%, var(--exp-primary-light) 100%);
  border: 4px solid var(--exp-bg-card);
  box-shadow:
    0 0 0 4px var(--exp-primary),
    0 0 20px rgba(239, 55, 36, 0.5),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 3;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.7; }
}

.timeline-dot.active {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--exp-success) 0%, #00ff88 100%);
  box-shadow:
    0 0 0 4px var(--exp-success),
    0 0 30px rgba(46, 213, 115, 0.6),
    inset 0 0 15px rgba(255, 255, 255, 0.4);
  animation: activeDotGlow 2s ease-in-out infinite;
}

@keyframes activeDotGlow {
  0%, 100% {
    box-shadow: 0 0 0 4px var(--exp-success), 0 0 30px rgba(46, 213, 115, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px var(--exp-success), 0 0 50px rgba(46, 213, 115, 0.8);
  }
}

.timeline-line {
  flex: 1;
  width: 3px;
  background: linear-gradient(180deg, var(--exp-primary) 0%, transparent 100%);
  margin-top: 8px;
  border-radius: 2px;
}

/* ========== CARD CONTENT ========== */

.card-content {
  position: relative;
  background: var(--exp-card-gradient);
  border: 1px solid var(--exp-border);
  border-radius: 20px;
  overflow: visible;
  box-shadow: var(--exp-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--exp-primary), var(--exp-secondary), var(--exp-accent), var(--exp-primary));
  background-size: 300% 100%;
  animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.company-card:hover .card-content,
.company-card.active .card-content {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--exp-border-hover);
  box-shadow:
    var(--exp-shadow),
    var(--exp-shadow-glow),
    0 0 0 1px var(--exp-border-hover);
}

/* ========== COMPANY HEADER ========== */
.company-card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 28px 20px;
  background: var(--exp-header-gradient);
  border-bottom: 1px solid var(--exp-border);
  flex-wrap: wrap;
}

.company-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--exp-bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  border: 1px solid var(--exp-border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.company-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.company-card:hover .company-logo::before {
  opacity: 1;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.company-info {
  flex: 1;
  min-width: 200px;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--exp-text-primary);
  margin: 0 0 6px;
  background: linear-gradient(135deg, var(--exp-text-primary) 0%, var(--exp-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.company-role {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--exp-primary);
  margin-bottom: 10px;
  padding: 4px 12px;
  background: rgba(239, 55, 36, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(239, 55, 36, 0.2);
}

.company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--exp-text-secondary);
}

.company-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.company-meta i {
  color: var(--exp-primary);
  font-size: 0.85rem;
}

/* ========== COMPANY BADGES ========== */
.company-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-left: auto;
}

.project-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--exp-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  background: var(--exp-bg-glass);
  border-radius: 20px;
  border: 1px solid var(--exp-border);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(108, 117, 125, 0.15);
  color: var(--exp-text-secondary);
  border: 1px solid var(--exp-border);
}

.status-badge.active {
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.2) 0%, rgba(0, 255, 136, 0.1) 100%);
  color: var(--exp-success);
  border-color: rgba(46, 213, 115, 0.3);
  box-shadow: 0 0 20px rgba(46, 213, 115, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--exp-success);
  animation: statusPulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--exp-success);
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.status-badge.completed {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.15) 0%, rgba(108, 117, 125, 0.08) 100%);
  color: var(--exp-text-muted);
}

/* ========== COMPANY SUMMARY ========== */
.company-summary {
  padding: 24px 28px;
  border-bottom: 1px solid var(--exp-border);
}

.company-summary p {
  color: var(--exp-text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.company-summary p:last-child {
  margin-bottom: 0;
}

/* ========== TECH STACK ========== */
.company-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 28px;
  background: var(--exp-bg-glass);
  border-bottom: 1px solid var(--exp-border);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--exp-bg-card);
  border: 1px solid var(--exp-border);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--exp-text-primary);
  transition: all 0.3s ease;
  cursor: default;
}

.tech-badge:hover {
  transform: translateY(-3px);
  border-color: var(--exp-primary);
  box-shadow: 0 8px 25px rgba(239, 55, 36, 0.2);
  background: rgba(239, 55, 36, 0.1);
}

.tech-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ========== PROJECTS SECTION ========== */
.project-section {
  padding: 24px 28px;
}

.projects-toggle {
  width: calc(100% - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  margin: 20px auto;
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  border: 1px solid var(--exp-border);
  border-radius: 12px;
  color: var(--exp-text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.projects-toggle:hover {
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
  border-color: var(--exp-primary);
  transform: translateY(-2px);
}

.projects-toggle i {
  transition: transform 0.4s ease;
}

.projects-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.projects-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 28px;
}

.projects-container.open {
  max-height: 5000px;
  padding: 24px 28px;
}

/* ========== PROJECT CARD ========== */
.project-card {
  background: var(--exp-bg-glass);
  border: 1px solid var(--exp-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.4s ease;
  position: relative;
  overflow: visible;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--exp-border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card.featured {
  position: relative;
  background: rgba(20, 20, 30, 0.95);
  border: 2px solid var(--exp-primary);
  box-shadow:
    0 0 20px rgba(239, 55, 36, 0.3),
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-card.featured::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--exp-primary), var(--exp-primary-light), var(--exp-primary));
  background-size: 200% 200%;
  border-radius: 22px;
  z-index: -1;
  animation: featuredGlow 4s ease-in-out infinite;
  filter: blur(15px);
  opacity: 0.25;
}

@keyframes featuredGlow {
  0%, 100% {
    opacity: 0.2;
    filter: blur(15px);
    background-position: 0% 50%;
  }
  50% {
    opacity: 0.35;
    filter: blur(20px);
    background-position: 100% 50%;
  }
}

.project-card.featured:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--exp-primary-light);
  box-shadow:
    0 0 30px rgba(239, 55, 36, 0.4),
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card.featured:hover::before {
  opacity: 0.45;
  filter: blur(25px);
}

.project-card.featured::after {
  content: '★ Featured';
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, var(--exp-primary) 0%, var(--exp-primary-light) 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 45px;
  transform: rotate(45deg);
  box-shadow:
    0 4px 15px rgba(239, 55, 36, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Featured card inner glow effect */
.project-card.featured .project-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: radial-gradient(ellipse at top, rgba(239, 55, 36, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ========== PROJECT HEADER ========== */
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.project-title-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.project-icon {
  font-size: 2rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.project-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--exp-text-primary);
  margin: 0;
}

.project-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  background: rgba(239, 55, 36, 0.1);
  color: var(--exp-primary);
  border-radius: 20px;
  border: 1px solid rgba(239, 55, 36, 0.2);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--exp-primary) 0%, var(--exp-primary-light) 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 55, 36, 0.3);
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 55, 36, 0.4);
  color: #fff;
}

/* ========== PROJECT GALLERY ========== */
.project-gallery {
  position: relative;
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--exp-bg-card);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.1);
}

.gallery-carousel {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
  min-width: 100%;
  aspect-ratio: 16/9;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-slide:hover img {
  transform: scale(1.02);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 5;
  color: var(--exp-primary);
}

.gallery-nav:hover {
  background: var(--exp-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }

.gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.gallery-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gallery-dots .dot.active,
.gallery-dots .dot:hover {
  background: var(--exp-primary);
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--exp-primary);
}

/* ========== PROJECT DESCRIPTION ========== */
.project-description {
  margin-bottom: 20px;
}

.project-description h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--exp-text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-description h5::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--exp-primary), var(--exp-secondary));
  border-radius: 2px;
}

.responsibility-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.responsibility-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--exp-bg-card);
  border-radius: 12px;
  border: 1px solid var(--exp-border);
  color: var(--exp-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.responsibility-list li:hover {
  border-color: var(--exp-border-hover);
  transform: translateX(4px);
  background: rgba(239, 55, 36, 0.05);
}

.responsibility-list li i {
  color: var(--exp-success);
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ========== PROJECT INTEGRATIONS ========== */
.project-integrations,
.project-links {
  margin-top: 20px;
}

.integration-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--exp-text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.integration-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.integration-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--exp-accent);
  transition: all 0.3s ease;
}

.integration-badge:hover {
  transform: translateY(-2px);
  border-color: var(--exp-accent);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

.integration-badge.link-badge {
  text-decoration: none;
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.1) 0%, rgba(255, 107, 74, 0.05) 100%);
  border-color: rgba(239, 55, 36, 0.2);
  color: var(--exp-primary);
}

.integration-badge.link-badge:hover {
  border-color: var(--exp-primary);
  box-shadow: 0 8px 20px rgba(239, 55, 36, 0.2);
  color: var(--exp-primary);
}

/* ========== LIGHT MODE SPECIFIC ========== */
:root:not([data-theme="dark"]) .company-card-header {
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.05) 0%, rgba(255, 215, 0, 0.03) 100%);
}

:root:not([data-theme="dark"]) .company-logo {
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

:root:not([data-theme="dark"]) .tech-badge {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

:root:not([data-theme="dark"]) .tech-badge:hover {
  background: rgba(239, 55, 36, 0.05);
}

:root:not([data-theme="dark"]) .project-card {
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

:root:not([data-theme="dark"]) .project-card.featured {
  background: #ffffff;
  border-color: var(--exp-primary);
  box-shadow:
    0 0 20px rgba(239, 55, 36, 0.12),
    0 15px 35px rgba(0, 0, 0, 0.1);
}

:root:not([data-theme="dark"]) .project-card.featured::before {
  opacity: 0.15;
  filter: blur(15px);
}

:root:not([data-theme="dark"]) .project-card.featured:hover {
  box-shadow:
    0 0 30px rgba(239, 55, 36, 0.2),
    0 25px 50px rgba(0, 0, 0, 0.12);
}

:root:not([data-theme="dark"]) .project-card.featured:hover::before {
  opacity: 0.25;
}

:root:not([data-theme="dark"]) .project-card.featured::after {
  box-shadow:
    0 4px 12px rgba(239, 55, 36, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

:root:not([data-theme="dark"]) .responsibility-list li {
  background: #f8f9fa;
}

:root:not([data-theme="dark"]) .responsibility-list li:hover {
  background: rgba(239, 55, 36, 0.03);
}

:root:not([data-theme="dark"]) .timeline-dot {
  border-color: #fff;
}

:root:not([data-theme="dark"]) .card-content {
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
  .experience-timeline {
    padding-left: 30px;
  }

  .experience-timeline::before {
    left: 10px;
  }

  .timeline-connector {
    left: -30px;
  }

  .company-card-header {
    padding: 20px;
  }

  .company-logo {
    width: 60px;
    height: 60px;
  }

  .company-name {
    font-size: 1.3rem;
  }

  .company-badges {
    width: 100%;
    flex-direction: row;
    margin-top: 12px;
  }

  .company-summary,
  .company-tech-stack,
  .project-section,
  .projects-container.open {
    padding: 16px 20px;
  }

  .projects-toggle {
    width: calc(100% - 40px);
    margin: 16px auto;
  }
}

@media (max-width: 768px) {
  .experience-timeline {
    padding-left: 20px;
  }

  .experience-timeline::before {
    left: 6px;
    width: 3px;
  }

  .timeline-connector {
    left: -20px;
  }

  .timeline-dot {
    width: 18px;
    height: 18px;
  }

  .timeline-dot.active {
    width: 22px;
    height: 22px;
  }

  .company-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }

  .company-logo {
    width: 56px;
    height: 56px;
  }

  .company-name {
    font-size: 1.15rem;
  }

  .company-role {
    font-size: 0.9rem;
  }

  .company-meta {
    flex-direction: column;
    gap: 8px;
  }

  .company-badges {
    width: 100%;
    justify-content: flex-start;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-link {
    width: 100%;
    justify-content: center;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
  }

  .project-card {
    padding: 16px;
  }

  .responsibility-list li {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .experience-section-new {
    padding: 30px 0;
  }

  .experience-timeline {
    padding-left: 16px;
  }

  .experience-timeline::before {
    left: 4px;
    width: 2px;
  }

  .timeline-connector {
    left: -16px;
  }

  .timeline-dot {
    width: 14px;
    height: 14px;
  }

  .timeline-dot::before {
    width: 5px;
    height: 5px;
  }

  .timeline-dot.active {
    width: 18px;
    height: 18px;
  }

  .card-content {
    border-radius: 16px;
  }

  .company-card-header {
    padding: 14px;
  }

  .company-logo {
    width: 48px;
    height: 48px;
    padding: 8px;
    border-radius: 12px;
  }

  .company-name {
    font-size: 1.05rem;
  }

  .company-role {
    font-size: 0.8rem;
    padding: 3px 10px;
  }

  .company-meta {
    font-size: 0.8rem;
  }

  .status-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .company-summary,
  .company-tech-stack {
    padding: 12px 14px;
  }

  .company-summary p {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .tech-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 10px;
  }

  .tech-badge img {
    width: 16px;
    height: 16px;
  }

  .project-section,
  .projects-container.open {
    padding: 12px 14px;
  }

  .projects-toggle {
    width: calc(100% - 28px);
    margin: 12px auto;
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .project-card {
    padding: 14px;
    border-radius: 14px;
  }

  .project-name {
    font-size: 1.05rem;
  }

  .project-type {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

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

  .project-link {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .gallery-nav {
    width: 32px;
    height: 32px;
  }

  .gallery-nav.prev { left: 8px; }
  .gallery-nav.next { right: 8px; }

  .gallery-dots .dot {
    width: 8px;
    height: 8px;
  }

  .project-description h5 {
    font-size: 0.9rem;
  }

  .responsibility-list li {
    padding: 8px 10px;
    font-size: 0.8rem;
    gap: 8px;
  }

  .integration-label {
    font-size: 0.75rem;
  }

  .integration-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.company-card:hover .company-logo {
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Entrance animations for cards */
.company-card.animate-in {
  animation: cardEnter 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes cardEnter {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
.project-link:focus,
.gallery-nav:focus,
.projects-toggle:focus {
  outline: 2px solid var(--exp-primary);
  outline-offset: 3px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .card-content {
    border-width: 2px;
  }

  .timeline-dot {
    border-width: 3px;
  }
}

/* ============================================
   SCREENSHOT LIGHTBOX MODAL
   ============================================ */

/* Lightbox Overlay */
.screenshot-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* Close Button */
.screenshot-lightbox .lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.screenshot-lightbox .lightbox-close:hover {
  background: var(--exp-primary);
  border-color: var(--exp-primary);
  transform: scale(1.1) rotate(90deg);
}

/* Navigation Buttons */
.screenshot-lightbox .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.screenshot-lightbox .lightbox-nav:hover {
  background: var(--exp-primary);
  border-color: var(--exp-primary);
  transform: translateY(-50%) scale(1.1);
}

.screenshot-lightbox .lightbox-nav.prev {
  left: 20px;
}

.screenshot-lightbox .lightbox-nav.next {
  right: 20px;
}

/* Content Container */
.screenshot-lightbox .lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image */
.screenshot-lightbox .lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  transition: opacity 0.15s ease;
}

/* Lightbox Responsive */
@media (max-width: 768px) {
  .screenshot-lightbox .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .screenshot-lightbox .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .screenshot-lightbox .lightbox-nav.prev {
    left: 10px;
  }

  .screenshot-lightbox .lightbox-nav.next {
    right: 10px;
  }

  .screenshot-lightbox .lightbox-content {
    max-width: 95vw;
    max-height: 80vh;
  }

  .screenshot-lightbox .lightbox-content img {
    max-height: 80vh;
    border-radius: 8px;
  }
}

/* Gallery Image Cursor */
.gallery-slide img {
  cursor: zoom-in;
}

.gallery-slide img:hover {
  opacity: 0.9;
}
