/* Dark Forest Portfolio Timeline - Main Styles */
:root {
    --dark-bg: #0a0e12;
    --tree-trunk: #3a1460;
    --tree-branch: #2a0c40;
    --leaf-green: #5e1a5c;
    --moss-green: #3b1050;
    --glow-green: rgba(189, 89, 255, 0.15);
    --glow-gold: rgba(255, 89, 215, 0.2);
    --card-bg: rgba(30, 20, 40, 0.7);
    --card-border: rgba(120, 80, 140, 0.3);
    --text-light: #e0e6e3;
    --text-dim: #a0a8a4;
    --vine-color: #4d1a60;
  }
  
  /* Base Styles */
  body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
  }
  
  .lightBg {
    background-color: var(--dark-bg);
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding-top: 80px; /* Add top padding to account for header */
  }
  
  .innerPageBannerCol {
    background-color: rgba(10, 14, 18, 0.9);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 60px; /* Add margin to account for header */
  }
  
  .bannerContent {
    position: relative;
    z-index: 2;
  }
  
  .xlTitle {
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(189, 89, 255, 0.3);
  }
  
  /* Forest Background */
  .forest-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  
  .parallax-trees {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background-image: url("/placeholder.svg?height=400&width=1920");
    background-size: cover;
    background-position: bottom center;
    opacity: 0.4;
  }
  
  .fog-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0.3;
  }
  
  .northern-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(10, 20, 30, 0.8), rgba(20, 40, 60, 0.2), transparent);
    opacity: 0.4;
  }
  
  /* Timeline Structure */
  .timeline-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--glow-green), var(--tree-trunk), var(--glow-green));
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 10px rgba(189, 89, 255, 0.3);
  }
  
  .timeline-items {
    position: relative;
    z-index: 2;
  }
  

  
  @keyframes sapFlow {
    0% {
      opacity: 0.3;
      height: 70%;
    }
    50% {
      opacity: 0.6;
      height: 90%;
    }
    100% {
      opacity: 0.4;
      height: 80%;
    }
  }
  

  
  /* Timeline Items */
  .timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    min-height: 200px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .timeline-item.left {
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
  }
  
  .timeline-item.right {
    justify-content: flex-start;
    padding-left: calc(50% + 40px);
  }
  
  .timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--glow-green);
    border: 3px solid var(--tree-trunk);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 0 15px rgba(189, 89, 255, 0.5);
  }
  
  .pCol {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), inset 0 0 10px var(--glow-green);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    transform-origin: center bottom;
  }
  
  .pCol:hover {
    transform: translateY(-5px) rotate(0.5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 0 15px var(--glow-green);
  }
  
  .tier-s .pCol {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4), inset 0 0 15px var(--glow-gold);
  }
  
  .tier-s .pCol:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px var(--glow-gold);
  }
  
  .pImg {
    width: 100%;
    height: auto;
    border-radius: 15px 15px 0 0;
    transition: transform 0.5s ease;
    position: relative;
  }
  
  .pCol:hover .pImg {
    transform: scale(1.03);
  }
  
  .pContent {
    padding: 20px;
    background-color: transparent;
    border-radius: 0 0 15px 15px;
    text-align: center;
    position: relative;
  }
  
  .pContent::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--card-border), transparent);
  }
  
  .pTitle {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-light);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  }
  
  .pTitle a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .pTitle a:hover {
    color: #bd59ff;
    text-shadow: 0 0 10px rgba(189, 89, 255, 0.3);
  }
  
  .pDesc {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
    height: auto;
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 15px;
  }
  
  .pDate {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 5px;
    font-style: italic;
  }
  
  /* Tier Indicators */
  .tier-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
  
  .tier-s .tier-indicator {
    background-color: rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: gold;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }
  
  .tier-a .tier-indicator {
    background-color: rgba(189, 89, 255, 0.2);
    border: 1px solid rgba(189, 89, 255, 0.4);
    color: #bd59ff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }
  
  .tier-b .tier-indicator {
    background-color: rgba(100, 120, 100, 0.2);
    border: 1px solid rgba(100, 120, 100, 0.4);
    color: #a0a8a4;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }
  
  /* Particle Systems */
  .particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }
  
  .particle {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
  }
  
  .leaf {
    width: 20px;
    height: 20px;
    background-image: url("/placeholder.svg?height=20&width=20");
    animation: leafFall 15s linear infinite;
  }
  
  .firefly {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 150, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 150, 0.5);
    animation: fireflyFloat 10s ease-in-out infinite;
  }
  
  @keyframes leafFall {
    0% {
      transform: translateY(-100px) rotate(0deg) translateX(0);
      opacity: 0;
    }
    10% {
      opacity: 0.7;
    }
    90% {
      opacity: 0.5;
    }
    100% {
      transform: translateY(calc(100vh + 100px)) rotate(360deg) translateX(100px);
      opacity: 0;
    }
  }
  
  @keyframes fireflyFloat {
    0% {
      transform: translate(0, 0);
      opacity: 0;
    }
    25% {
      opacity: 0.8;
    }
    50% {
      transform: translate(100px, -50px);
      opacity: 0.6;
    }
    75% {
      opacity: 0.9;
    }
    100% {
      transform: translate(0, 0);
      opacity: 0;
    }
  }
  
  /* Empty State */
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  
  .empty-tree {
    width: 200px;
    height: 300px;
    background-image: url("/placeholder.svg?height=300&width=200");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 20px;
    position: relative;
  }
  
  .empty-message {
    font-size: 1.5rem;
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
  }
  
  .empty-submessage {
    font-size: 1rem;
    color: var(--text-dim);
  }
  
  /* Responsive Design */
  @media (min-width: 768px) {
    .timeline-line {
      width: 6px;
    }
    
    .timeline-dot {
      width: 20px;
      height: 20px;
    }
  
    .pCol {
      max-width: 450px;
    }
  }
  
  @media (min-width: 992px) {
    .pCol {
      max-width: 500px;
    }
  }
  
  /* Mobile Responsive */
  @media (max-width: 767px) {
    .lightBg {
      padding-top: 30px;
    }
  
    .innerPageBannerCol {
      margin-top: 30px;
      padding: 1rem 0;
    }
  
    .bannerContent {
      text-align: center;
      padding: 0 10px;
    }
  
    .xlTitle {
      font-size: 1.4rem;
    }
  
    .bannerContent h6 {
      font-size: 0.8rem;
    }
  
    .timeline-item.left,
    .timeline-item.right {
      padding-left: 40px;
      padding-right: 15px;
      justify-content: flex-start;
    }
    
    .timeline-dot {
      left: 20px;
      transform: translateY(-50%);
    }
    
    .timeline-line {
      left: 20px;
      transform: none;
    }
  
    .pCol {
      max-width: calc(100% - 60px);
    }
  }
  
  @media (max-width: 480px) {
    .xlTitle {
      font-size: 1.2rem;
    }
  
    .bannerContent h6 {
      font-size: 0.75rem;
    }
    
    .timeline-item {
      margin-bottom: 60px;
    }
  }
  
  @media (max-width: 767px) and (orientation: landscape) {
    .innerPageBannerCol {
      padding: 0.5rem 0;
    }
    
    .timeline-item {
      margin-bottom: 50px;
    }
  }