/* Enhanced Glassmorphism for another_home.html - Apple-inspired design */

:root {
  /* Existing color scheme preservation */
  --primary-green: #54ba4e;
  --primary-green-light: rgba(84, 186, 78, 0.1);
  --primary-green-border: rgba(84, 186, 78, 0.2);
  
  /* Apple-inspired glassmorphism variables */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-bg-dark: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --glass-backdrop: blur(20px);
  
  /* Technology colors */
  --js-color: #F7DF1E;
  --python-color: #3776AB;
  --cpp-color: #00599C;
  --react-color: #61DAFB;
  --node-color: #339933;
  --aws-color: #FF9900;
}

/* Enhanced main container with glassmorphism */
.wrapper {
  background: linear-gradient(135deg, 
    rgba(84, 186, 78, 0.05) 0%, 
    rgba(255, 255, 255, 0.02) 50%, 
    rgba(84, 186, 78, 0.05) 100%);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
  margin-bottom: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced section styling */
.section-inner {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border) !important;
  border-radius: 24px !important;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.section-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
  border-radius: 24px 24px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section-inner:hover::before {
  opacity: 1;
}

.section-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Enhanced heading styles */
.heading {
  color: #333 !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 8px;
}

/* Enhanced project cards */
.item {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border) !important;
  border-radius: 24px !important;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), transparent);
  border-radius: 24px 24px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.item:hover::before {
  transform: scaleX(1);
}

.item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Enhanced project images */
.project-image {
  border-radius: 16px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Enhanced buttons with Apple-style glassmorphism */
.btn {
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.25) 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.05) 100%) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  padding: 12px 24px;
  font-weight: 500;
  color: #333 !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.35) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 100%) !important;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.btn-cta-primary {
  background: linear-gradient(145deg, 
    var(--primary-green) 0%, 
    rgba(84, 186, 78, 0.9) 50%, 
    rgba(84, 186, 78, 0.8) 100%) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 
    0 8px 32px rgba(84, 186, 78, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
}

.btn-cta-primary:hover {
  background: linear-gradient(145deg, 
    rgba(84, 186, 78, 1.1) 0%, 
    var(--primary-green) 50%, 
    rgba(84, 186, 78, 0.9) 100%) !important;
  color: white !important;
  box-shadow: 
    0 12px 40px rgba(84, 186, 78, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px) scale(1.02);
}

.btn-cta-secondary {
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.4) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 100%) !important;
  color: #222 !important;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Enhanced dialog/popup styling */
dialog {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px !important;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

/* Enhanced filters */
.filters2 {
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.filters2 .type {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 8px 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.filters2 .type:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.filters2 .type.active {
  background: var(--primary-green) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(84, 186, 78, 0.3);
}

/* Enhanced skills section */
.skillset .item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skillset .item:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.level-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  min-height: 2.5rem;
}

.level-label {
  font-size: 0.7rem;
  color: var(--primary-green);
  font-weight: 500;
  white-space: nowrap;
  background: rgba(84, 186, 78, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 16px;
  border: 1px solid rgba(84, 186, 78, 0.2);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.1rem;
}

/* Enhanced progress bars */
.level-bar {
  height: 8px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px !important;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-green), rgba(84, 186, 78, 0.7)) !important;
  border-radius: 20px !important;
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

/* Technology icons */
.tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  margin-right: 8px;
  font-size: 1.2rem;
}

.tech-icon.js { color: var(--js-color); background: rgba(247, 223, 30, 0.1); }
.tech-icon.python { color: var(--python-color); background: rgba(55, 118, 171, 0.1); }
.tech-icon.cpp { color: var(--cpp-color); background: rgba(0, 89, 156, 0.1); }
.tech-icon.react { color: var(--react-color); background: rgba(97, 218, 251, 0.1); }
.tech-icon.node { color: var(--node-color); background: rgba(51, 153, 51, 0.1); }
.tech-icon.aws { color: var(--aws-color); background: rgba(255, 153, 0, 0.1); }

/* Technology badges for projects */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-tech:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.badge-tech i {
  font-size: 0.8rem;
}

/* Enhanced Project Dialogs */
.project-dialog {
  max-width: 900px;
  width: 90vw;
  max-height: 90vh;
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border) !important;
  border-radius: 24px !important;
  padding: 0;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden;
}

.project-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.dialog-header {
  background: linear-gradient(135deg, var(--primary-green), rgba(84, 186, 78, 0.8));
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  border-radius: 24px 24px 0 0;
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.dialog-content {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(90vh - 120px);
}

.tech-stack-section h4 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-weight: 600;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.tech-item-large {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass-bg-dark);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.tech-item-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tech-item-large span {
  font-weight: 500;
  color: #333;
}

.project-details {
  line-height: 1.6;
  color: #444;
}

.project-details h2, 
.project-details h3, 
.project-details h4 {
  color: var(--primary-green);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.project-details ul {
  padding-left: 1.5rem;
}

.project-details li {
  margin-bottom: 0.5rem;
}

.project-details code {
  background: rgba(84, 186, 78, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.project-actions {
  display: flex;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-md-project {
  border-left: 4px solid var(--primary-green);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: linear-gradient(135deg, 
    rgba(84, 186, 78, 0.02) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
}

.featured-md-project:hover {
  border-left-color: rgba(84, 186, 78, 0.8);
  background: linear-gradient(135deg, 
    rgba(84, 186, 78, 0.05) 0%, 
    rgba(255, 255, 255, 0.08) 100%);
}

/* Enhanced sidebar */
.secondary .section-inner {
  background: var(--glass-bg-dark) !important;
}

.info .content ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.info .content ul li:hover {
  padding-left: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.info .content ul li i {
  color: var(--primary-green);
  margin-right: 0.5rem;
  width: 20px;
}

/* Featured project enhancement */
.featured {
  position: relative;
}

.featured::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-green), transparent, var(--primary-green));
  border-radius: 26px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured:hover::before {
  opacity: 1;
}

/* Animations */
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.item {
  animation: fadeInUp 0.6s ease-out;
}

/* Experience section mobile collapsible filters */
.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.filter-toggle {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.filter-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-toggle .fa-chevron-down {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.filter-toggle.active .fa-chevron-down {
  transform: rotate(180deg);
}

.collapsible-filters {
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .wrapper {
    border-radius: 16px;
    margin-bottom: 1rem;
  }
  
  .section-inner {
    border-radius: 12px !important;
    padding: 1rem;
  }
  
  .item {
    border-radius: 12px !important;
    padding: 1rem;
  }
  
  dialog {
    border-radius: 16px !important;
    padding: 1rem;
    margin: 1rem;
  }

  /* Hide filters by default on mobile */
  .collapsible-filters {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    transform: translateY(-10px) !important;
    overflow: hidden !important;
  }
  
  .collapsible-filters.show {
    max-height: 200px !important;
    opacity: 1 !important;
    margin-bottom: 2rem !important;
    padding: 1rem !important;
    transform: translateY(0) !important;
  }
  
  .experience-header {
    margin-bottom: 0.5rem;
  }
  
  .experience-header .heading {
    margin-bottom: 0;
    font-size: 1.5rem;
  }
  
  .filter-toggle {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  /* Animated timeline behavior on mobile */
  .timeline-container {
    padding: 1rem 0;
    position: relative;
  }
  
  .timeline-line {
    opacity: 1;
    animation: timelineShowHide 4s ease-in-out forwards;
  }
  
  .timeline-dot {
    opacity: 1;
    animation: timelineShowHide 4s ease-in-out forwards;
  }
  
  .timeline-arrow {
    opacity: 1;
    animation: timelineShowHide 4s ease-in-out forwards;
  }
  
  .timeline-item {
    padding-left: 80px;
    margin-bottom: 2rem;
    transition: padding-left 1s ease-in-out 3s;
  }
  
  .timeline-item.sidebar-hidden {
    padding-left: 0;
  }
  
  .timeline-content {
    padding: 1rem;
    transition: all 1s ease-in-out 3s;
    width: 100%;
    max-width: 100%;
  }
  
  .timeline-item.sidebar-hidden .timeline-content {
    margin-left: 0;
    padding-left: 1rem;
    width: 100%;
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  }
  
  /* Timeline container animation */
  .timeline-container.sidebar-hidden {
    margin-left: 0;
    padding-left: 0;
  }
  
  /* Timeline hint message */
  .timeline-hint {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    animation: showHint 4s ease-in-out forwards;
    z-index: 10;
  }

  /* Keyframe animation for timeline elements */
  @keyframes timelineShowHide {
    0% { opacity: 0; transform: scale(0.8); }
    25% { opacity: 1; transform: scale(1); }
    75% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
  }
  
  @keyframes showHint {
    0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  }
  
  .timeline-date {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }
  
  .timeline-title {
    font-size: 1rem;
  }
  
  .timeline-company {
    font-size: 1.1rem;
  }
  
  .timeline-description {
    font-size: 0.9rem;
  }
  
  .timeline-tech-stack {
    gap: 0.3rem;
  }
  
  .badge-tech {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Larger mobile devices */
@media (min-width: 769px) {
  .filter-toggle {
    display: none !important;
  }
  
  .collapsible-filters {
    max-height: none !important;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 2rem !important;
    padding: 1rem !important;
  }
}

/* Timeline Experience Section */
.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, 
    var(--primary-green) 0%, 
    rgba(84, 186, 78, 0.5) 50%,
    transparent 100%);
  border-radius: 8px;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInTimeline 0.8s ease-out forwards;
}

.timeline-item:nth-child(even) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(odd) {
  animation-delay: 0.4s;
}

.timeline-dot {
  position: absolute;
  left: 22px;
  top: 24px;
  width: 20px;
  height: 20px;
  background: var(--primary-green);
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(84, 186, 78, 0.4);
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(84, 186, 78, 0.6);
}

.timeline-item:hover .timeline-dot::before {
  opacity: 1;
}

.timeline-arrow {
  position: absolute;
  left: 50px;
  top: 28px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--glass-border);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-arrow {
  border-left-color: var(--primary-green);
  transform: translateX(4px);
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-content:hover {
  transform: translateY(-4px) translateX(8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.timeline-date {
  display: inline-block;
  background: var(--primary-green);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(84, 186, 78, 0.3);
}

.timeline-title {
  color: var(--primary-green);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-company {
  color: #666;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@keyframes fadeInTimeline {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile timeline adjustments */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  
  .timeline-dot {
    left: 12px;
    width: 16px;
    height: 16px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-arrow {
    left: 40px;
  }
  
  .timeline-content {
    border-radius: 16px;
    padding: 1rem;
  }
}

/* Animation toggle */
.animation-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.animation-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.animation-toggle input {
  margin: 0;
}

/* No animations class */
.no-animations *,
.no-animations *::before,
.no-animations *::after {
  animation-duration: 0.01ms !important;
  animation-delay: -0.01ms !important;
  animation-iteration-count: 1 !important;
  background-attachment: initial !important;
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
}

/* Light mode improvements */
:root {
  --text-primary-light: #1a1a1a;
  --text-secondary-light: #333;
  --text-muted-light: #555;
  --glass-bg-light: rgba(255, 255, 255, 0.25);
  --glass-bg-dark-light: rgba(255, 255, 255, 0.35);
  --glass-border-light: rgba(255, 255, 255, 0.4);
}

@media (prefers-color-scheme: light) {
  .heading {
    color: var(--text-primary-light) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  }
  
  .level-title {
    color: var(--text-primary-light) !important;
  }
  
  .timeline-company {
    color: var(--text-secondary-light) !important;
  }
  
  .timeline-description {
    color: var(--text-muted-light) !important;
  }
  
  .timeline-title {
    color: var(--primary-green) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  }
  
  .section-inner {
    background: var(--glass-bg-light) !important;
    border: 1px solid var(--glass-border-light) !important;
  }
  
  .item {
    background: var(--glass-bg-light) !important;
    border: 1px solid var(--glass-border-light) !important;
  }
  
  .btn-cta-secondary {
    background: linear-gradient(145deg, 
      rgba(255, 255, 255, 0.6) 0%, 
      rgba(255, 255, 255, 0.4) 50%, 
      rgba(255, 255, 255, 0.3) 100%) !important;
    color: #111 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  }
  
  .project-details {
    color: var(--text-muted-light) !important;
  }
  
  .animation-toggle {
    color: var(--text-primary-light);
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border-light);
  }
  
  .filter-toggle {
    color: var(--text-primary-light);
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border-light);
  }
  
  .bottom-navigation {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border-light);
  }
  
  .bottom-navigation .nav-link {
    color: var(--text-secondary-light);
  }
  
  .theme-switch-btn {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border-light);
    color: var(--text-secondary-light);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --glass-bg: rgba(0, 0, 0, 0.2);
    --glass-bg-dark: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
  }
  
  .heading {
    color: #f0f0f0 !important;
  }
  
  .level-title {
    color: #f0f0f0;
  }
  
  .timeline-company {
    color: #ccc;
  }
  
  .timeline-description {
    color: #ddd;
  }
}

/* Improved contact form button */
.btn[type="submit"], 
.btn-primary,
input[type="submit"] {
  background: linear-gradient(145deg, 
    var(--primary-green) 0%, 
    rgba(84, 186, 78, 0.9) 50%, 
    rgba(84, 186, 78, 0.8) 100%) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 
    0 8px 32px rgba(84, 186, 78, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer;
}

.btn[type="submit"]:hover, 
.btn-primary:hover,
input[type="submit"]:hover {
  background: linear-gradient(145deg, 
    rgba(84, 186, 78, 1.1) 0%, 
    var(--primary-green) 50%, 
    rgba(84, 186, 78, 0.9) 100%) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 
    0 12px 40px rgba(84, 186, 78, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
}

/* Bottom Navigation */
.bottom-navigation {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 1rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-navigation:hover {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.bottom-navigation .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 16px;
  text-decoration: none;
  color: #666;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bottom-navigation .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-green);
  opacity: 0;
  border-radius: 16px;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.bottom-navigation .nav-link:hover::before {
  opacity: 0.1;
}

.bottom-navigation .nav-link:hover {
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(84, 186, 78, 0.2);
}

.bottom-navigation .nav-link i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.bottom-navigation .nav-link:hover i {
  transform: scale(1.1);
}

.bottom-navigation .nav-link span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer Theme Button */
.footer-theme-section {
  margin-bottom: 1rem;
}

.theme-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.theme-switch-btn:hover {
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.theme-switch-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.theme-switch-btn:hover i {
  transform: scale(1.1);
}

/* Mobile adjustments for bottom navigation */
@media (max-width: 768px) {
  .bottom-navigation {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    border-radius: 20px;
    bottom: 15px;
  }
  
  .bottom-navigation .nav-link {
    padding: 0.4rem 0.6rem;
    gap: 0.2rem;
  }
  
  .bottom-navigation .nav-link i {
    font-size: 1rem;
  }
  
  .bottom-navigation .nav-link span {
    font-size: 0.65rem;
  }
  
  .theme-switch-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}