body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  overflow-x: hidden;
}


/* Reusing main page font for titles */
.animated-title,
.section-title {
    font-family: 'Cinzel Decorative', serif;
    background: linear-gradient(90deg, #ffffff, #fadd7e, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s linear infinite,float 4s ease-in-out infinite; /* Reusing shine animation */
    letter-spacing: 2px;
    margin-bottom: 25px;
}

/* Animations from main page */
@keyframes shine {
    to { background-position: 200% center; }
}

/* Hero Section */
.about-hero {
    position: relative;
    height: 60vh; /* Shorter hero section for about page */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    background-attachment: fixed; /* Parallax effect */
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
     /* For any internal sparkles */
}

.hero-content {
    z-index: 10;
}

.about-hero h1 {
    font-size: 4em;
    margin-bottom: 10px;
}

.about-hero p {
    font-size: 1.5em;
    color: #bbb;
    margin-top: 0;
}



.floating-dots::before, .floating-dots::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 300%;
  top: -100%;
  left: -50%;
  background: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveBg 15s linear infinite;
  z-index: 1;
  pointer-events: none;
}

.floating-dots::after {
  animation-direction: reverse;
  opacity: 0.5;
}


@keyframes shine {
  to {
    background-position: 200% center;
  }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes moveBg {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10%, 10%); }
} 
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .floating-dots::before,
  .floating-dots::after {
    background: radial-gradient(#ffffff 2px, transparent 2px);
    background-size: 60px 60px;
  }
}


/* new */

    .timeline-container {
      position: relative;
      max-width: 1200px;
      margin: 0 auto clamp(40px, 8vw, 60px);
      padding: 0 20px clamp(40px, 8vw, 60px);
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      font-family: 'Plus Jakarta Sans', sans-serif;
    }

    .background-particles {
      pointer-events: none;
      position: fixed;
      top: 0;
      left: 0;
      width: auto;
      height: 100vh;
      background: linear-gradient(180deg, rgba(17, 17, 17, 0.8) 0%, rgba(5, 5, 5, 0.8) 100%);
      overflow: hidden;
      z-index: 0;
    }

    .background-particles span {
      position: absolute;
      width: 2px;
      height: 12px;
      background: rgba(255, 255, 255, 0.07);
      border-radius: 10px;
      animation: particleMove 10s linear infinite;
    }
    @keyframes particleMove {
      0% {
        transform: translateY(0);
        opacity: 0.1;
      }
      50% {
        opacity: 0.3;
      }
      100% {
        transform: translateY(-100vh);
        opacity: 0.1;
      }
    }

    .timeline-svg-container {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 12px;
      height: 100%;
      z-index: 10;
    }

    #timelinePath {
      stroke: #888;
      stroke-width: 4;
      stroke-linecap: round;
      filter: drop-shadow(0 0 3px rgba(136, 136, 136, 0.5));
      transition: stroke 0.3s ease;
    }
    #timelinePath.pulse {
      animation: glowPulse 1.6s ease-in-out infinite alternate;
      stroke: #aaa;
      filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    }
    @keyframes glowPulse {
      0% {
        stroke-width: 4;
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
      }
      100% {
        stroke-width: 7;
        filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.7));
      }
    }

    .step {
      position: relative;
      width: 50%;
      margin-bottom: clamp(40px, 6vw, 60px);
      opacity: 0;
      transform-style: preserve-3d;
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                  transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                  box-shadow 0.5s ease;
      cursor: default;
      perspective: 800px;
      z-index: 12;
      display: flex;
      align-items: center;
    }
    .step:nth-child(odd) {
      margin-right: auto;
      padding-right: clamp(40px, 5vw, 60px);
      flex-direction: row-reverse;
    }
    .step:nth-child(even) {
      margin-left: auto;
      padding-left: clamp(40px, 5vw, 60px);
      flex-direction: row;
    }
    .step.active {
      opacity: 1;
    }

    .step.active:nth-child(odd) {
      transform: translateX(0) rotateY(0deg);
      box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
    }
    .step.active:nth-child(even) {
      transform: translateX(0) rotateY(0deg);
      box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
    }
    .step:not(.active):nth-child(odd) {
      transform: translateX(-60px) rotateY(10deg);
    }
    .step:not(.active):nth-child(even) {
      transform: translateX(60px) rotateY(-10deg);
    }

    .step-circle {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: clamp(36px, 4vw, 44px);
      height: clamp(36px, 4vw, 44px);
      border: 3px solid #777;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.07);
      backdrop-filter: blur(8px);
      box-shadow: 0 0 12px rgba(255, 255, 255, 0.03);
      transition: border-color 0.5s ease;
      z-index: 14;
    }
    .step:nth-child(odd) .step-circle {
      right: 0;
    }
    .step:nth-child(even) .step-circle {
      left: 0;
    }

    .step-circle::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      opacity: 0;
      pointer-events: none;
    }
    .step.active .step-circle::before {
      animation: ripplePulse 0.9s ease forwards;
    }
    @keyframes ripplePulse {
      0% {
        width: 10px;
        height: 10px;
        opacity: 0.6;
      }
      70% {
        width: clamp(50px, 10vw, 70px);
        height: clamp(50px, 10vw, 70px);
        opacity: 0;
      }
      100% {
        opacity: 0;
        width: 0;
        height: 0;
      }
    }

    .step-content {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 16px;
      padding: clamp(15px, 3vw, 25px) clamp(18px, 3vw, 28px) clamp(20px, 4vw, 32px);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
      color: #ddd;
      max-width: clamp(300px, 45vw, 480px);
      width: 100%;
      transition: box-shadow 0.3s ease;
    }
    .step:nth-child(odd) .step-content {
      margin-right: clamp(40px, 5vw, 60px);
      text-align: right;
    }
    .step:nth-child(even) .step-content {
      margin-left: clamp(40px, 5vw, 60px);
      text-align: left;
    }

    .step-title {
      font-weight: 700;
      font-size: clamp(1.4rem, 3vw, 1.7rem);
      margin: 0 0 14px;
      /* color: #f5f5f5; */

      font-family: 'Cinzel Decorative', serif;
  /* font-size: 2.5em; */
  background: linear-gradient(90deg, #ffffff, #fadd7e, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite, float 4s ease-in-out infinite;
  /* margin-bottom: 25px;
  letter-spacing: 2px; */
    }

    .step-description {
      line-height: 1.5;
      color: #bbb;
      font-size: clamp(0.9rem, 2.5vw, 1rem);
    }

    .step-images {
      margin-top: clamp(15px, 3vw, 22px);
      display: flex;
      gap: clamp(10px, 2vw, 15px);
      justify-content: flex-start;
      flex-wrap: wrap;
    }
    .step:nth-child(odd) .step-images {
      justify-content: flex-end;
    }

    .step-images img,
    .step-images video {
      max-width: 100%;
      width: 100%;
      border-radius: 14px;
      object-fit: cover;
      cursor: pointer;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
      transition: transform 0.45s ease, box-shadow 0.5s ease;
      will-change: transform;
    }
    .step-images video {
      max-height: 300px; /* Limit video height for better fit */
    }
    .step-images img:hover,
    .step-images video:hover {
      transform: scale(1.05) translateZ(20px);
      box-shadow: 0 12px 32px rgba(255, 255, 255, 0.25);
    }

/* Media query for Nest Hub (1024px) and larger screens */
@media (min-width: 1024px) {
  .timeline-container {
    padding: 0 clamp(10px, 1vw, 15px);
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .timeline-svg-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 100%;
  }

  .step {
    width: calc(50% - clamp(20px, 2vw, 30px));
    margin-bottom: clamp(40px, 6vw, 60px);
    padding: 0 clamp(10px, 1vw, 15px);
    box-sizing: border-box;
    /* Restore animations with reduced translateX */
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s ease;
  }

  .step:nth-child(odd) {
    margin-right: auto;
    margin-left: clamp(20px, 2vw, 30px);
    padding-right: clamp(10px, 1vw, 15px);
    flex-direction: row-reverse;
    text-align: right;
  }

  .step:nth-child(even) {
    margin-left: auto;
    margin-right: clamp(20px, 2vw, 30px);
    padding-left: clamp(10px, 1vw, 15px);
    flex-direction: row;
    text-align: left;
  }

  .step.active {
    opacity: 1;
  }

  .step.active:nth-child(odd) {
    transform: translateX(0) rotateY(0deg); /* Restore active state */
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
  }

  .step.active:nth-child(even) {
    transform: translateX(0) rotateY(0deg); /* Restore active state */
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
  }

  .step:not(.active):nth-child(odd) {
    transform: translateX(-20px) rotateY(5deg); /* Reduced translateX */
  }

  .step:not(.active):nth-child(even) {
    transform: translateX(20px) rotateY(-5deg); /* Reduced translateX */
  }

  .step-content {
    max-width: calc(100% - clamp(15px, 1.5vw, 20px));
    margin: 0 clamp(5px, 0.5vw, 10px);
    padding: clamp(10px, 1.5vw, 15px);
    box-sizing: border-box;
  }

  .step-circle {
    width: clamp(36px, 4vw, 44px);
    height: clamp(36px, 4vw, 44px);
    top: 50%;
    transform: translateY(-50%) !important;
  }

  .step:nth-child(odd) .step-circle {
    right: clamp(-6px, -0.5vw, -4px);
    left: auto;
  }

  .step:nth-child(even) .step-circle {
    left: clamp(-6px, -0.5vw, -4px);
    right: auto;
  }

  .step-images {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
  }

  .step:nth-child(odd) .step-images {
    justify-content: flex-end;
  }

  .step:nth-child(even) .step-images {
    justify-content: flex-start;
  }

  .step-images img,
  .step-images video {
    width: 100%;
    max-width: calc(100% - 10px);
    height: auto;
    object-fit: contain;
    margin: 0;
  }

  /* Extra constraint for first two steps */
  .step:nth-child(1) .step-images img,
  .step:nth-child(2) .step-images img {
    max-width: calc(100% - 15px);
  }
}



    @media (max-width: 900px) {
  .timeline-container {
    padding: 0 10px; /* Reduce padding to minimize horizontal space usage */
    width: 100%; /* Ensure container uses full viewport width */
    box-sizing: border-box; /* Include padding in width */
  }

  .step {
    width: 100%; /* Full viewport width */
    padding: 0 !important; /* Remove all padding to prevent overflow */
    margin: 0 auto clamp(30px, 6vw, 40px) auto !important; /* Center with no side margins */
    flex-direction: row !important; /* Ensure consistent row layout */
    box-sizing: border-box; /* Include any borders/padding in width */
    transform: none !important; /* Remove transforms that might shift content */
  }

  .step-content {
    margin: 0 clamp(10px, 2vw, 15px) !important; /* Small margins on both sides */
    max-width: calc(100% - clamp(20px, 4vw, 30px)) !important; /* Constrain content width */
    padding: clamp(10px, 2.5vw, 15px) !important; /* Reduce padding for tighter fit */
    box-sizing: border-box; /* Ensure padding is included in width */
    text-align: left !important; /* Consistent text alignment */
  }

  .step-circle {
    left: clamp(5px, 1vw, 10px) !important; /* Position circle close to left edge */
    right: auto !important; /* Prevent right positioning */
    transform: translateY(-50%) !important; /* Maintain vertical centering */
    width: clamp(24px, 5vw, 30px) !important; /* Smaller circle for mobile */
    height: clamp(24px, 5vw, 30px) !important; /* Match width */
  }

  .step-images {
    width: 100% !important; /* Ensure images container takes full available width */
    margin: 0 !important; /* Remove any margins */
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start !important; /* Align images to start */
  }

  .step-images img,
  .step-images video {
    width: 100% !important; /* Force images/videos to fit container */
    max-width: 100% !important; /* Prevent overflow */
    height: auto !important; /* Maintain aspect ratio */
    object-fit: contain !important; /* Ensure full image is visible */
    margin: 0 !important; /* Remove any margins */
    border-radius: 10px; /* Maintain aesthetics */
  }

  /* Ensure no overflow for the first two steps */
  .step:nth-child(1) .step-images img,
  .step:nth-child(2) .step-images img {
    max-width: calc(100% - 10px) !important; /* Extra constraint for first two steps */
  }
}
    @media (max-width: 600px) {
      .timeline-container {
        padding: 0 10px clamp(30px, 6vw, 40px);
      }
      .step {
        width: 100%;
        padding-left: clamp(30px, 8vw, 40px) !important;
      }
      .step-content {
        margin-left: clamp(30px, 8vw, 40px) !important;
        padding: clamp(10px, 2.5vw, 15px);
      }
      .step-circle {
        width: clamp(30px, 6vw, 36px);
        height: clamp(30px, 6vw, 36px);
      }
      .step-images img,
      .step-images video {
        max-height: 150px;
      }
    }


    .about-main-content {
        position: relative;
  margin-top: clamp(40px, 8vw, 60px);
}



.diamond-img.diamond-1 {
  width: 140px;
  top: 8% !important;
  left: 10% !important;
  animation-delay: 0s;
}
.diamond-img.diamond-2 {
  width: 100px;
  top: 20% !important;
  
  left: 30% !important;
  opacity: 0.8;
  animation-delay: -7.5s;
}
.diamond-img.diamond-3 {
  width: 80px;
  top: 30% !important;
  /* right: 10%; */
  left: 6% !important;
  opacity: 0.7;
  animation-delay: -3s;
}
.diamond-img.diamond-4 {
  width: 110px;
  top: 70%  !important;
  left: 20% !important;
  opacity: 0.9;
  animation-delay: -10s;
}
.diamond-img.diamond-5 {
  width: 140px;
  top: 40% !important;
  right: 15%;
  animation-delay: 0s;
}


.diamond-img.diamond-6 {
  width: 100px;
  top: 50% !important;
  right: 25% !important;
  opacity: 0.8;
  animation-delay: -7.5s;
}
.diamond-img.diamond-7 {
  width: 80px;
  /* top: 30%; */
  top: 40% !important;
  left: 20% !important;
  opacity: 0.7;
  animation-delay: -3s;
}
.diamond-img.diamond-8 {
  width: 110px;
  top: 60% !important;
  left: 40% !important;
  opacity: 0.9;
  animation-delay: -10s;
}
.diamond-img.diamond-9 {
  width: 110px;
  bottom: 5% !important;
  right: 40% !important;
  opacity: 0.9;
  animation-delay: -10s;
}
.diamond-img.diamond-10 {
  width: 110px;
  bottom: 12% !important;
  right: 10% !important;
  opacity: 0.9;
  animation-delay: -10s;
}

@media (max-width: 900px){
  .timeline-svg-container{
    display: none;
  }
}