@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;900&family=Rajdhani:wght@300;600;700&display=swap');

:root {
  --neon-blue: #00f2ff;
  --neon-purple: #bc13fe;
  --bg-black: #050508;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  background: var(--bg-black);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, 
    rgba(188,19,254,0.1), 
    transparent 70%
  );
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* BACKGROUND GRID */
.cyber-grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0,242,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,242,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridMove 50s linear infinite;
  z-index: -2;
}

/* NAVBAR */
.cyber-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(5,5,8,0.95) 0%,
    rgba(10,10,15,0.9) 50%,
    rgba(5,5,8,0.95) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,242,255,0.5) 25%,
    rgba(188,19,254,0.5) 50%,
    rgba(0,242,255,0.5) 75%,
    transparent 100%
  ) 1;
  box-shadow: 
    0 4px 30px rgba(0,242,255,0.1),
    0 0 0 1px rgba(0,242,255,0.1) inset;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
  font-family: 'Orbitron';
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--neon-blue);
  text-shadow: 
    0 0 10px rgba(0,242,255,0.6),
    0 0 20px rgba(0,242,255,0.3),
    0 0 30px rgba(0,242,255,0.1);
  position: relative;
  transition: all 0.3s ease;
}

.logo:hover {
  text-shadow: 
    0 0 15px rgba(0,242,255,0.8),
    0 0 25px rgba(0,242,255,0.5),
    0 0 35px rgba(0,242,255,0.3);
  transform: scale(1.05);
}

.logo span {
  color: var(--neon-purple);
  text-shadow: 
    0 0 10px rgba(188,19,254,0.6),
    0 0 20px rgba(188,19,254,0.3);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: 'Orbitron';
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  position: relative;
  padding: 8px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0,242,255,0.5);
}

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

.nav-links a.active {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0,242,255,0.6);
}

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

.nav-links a.active {
  color: var(--neon-blue);
}

.nav-links a {
  margin-left: 26px;
  font-family: 'Orbitron';
  font-size: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.nav-links a.active {
  color: var(--neon-blue);
}

/* PAGE */
.journey-page {
  padding: 80px 6% 80px;
  max-width: 600px;
  margin: auto;
  text-align: center;
}

/* TITLES */
.page-title {
  font-family: 'Orbitron';
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  letter-spacing: 6px;
  color: var(--neon-blue);
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 50px;
}

/* TIMELINE */
.journey-vertical {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Central connecting line */
.journey-vertical::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, 
    transparent,
    rgba(0,242,255,0.4) 5%,
    rgba(0,242,255,0.4) 95%,
    transparent
  );
  transform: translateX(-50%);
  z-index: 0;
}

/* CARD */
.journey-item {
  position: relative;
  background: rgba(10, 10, 15, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 24px 28px;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  width: 45%;
  animation: fadeInUp 0.6s ease-out forwards;
}

.journey-item > div {
  position: relative;
  z-index: 1;
}

/* Border trail animation layer */
.journey-item:not(.highlight)::after {
  content: "";
  position: absolute;
  inset: -3px;
  background: conic-gradient(
    from var(--angle),
    transparent 70%,
    rgba(188,19,254,0.6) 80%,
    rgba(188,19,254,1) 85%,
    rgba(188,19,254,0.6) 90%,
    transparent 100%
  );
  border-radius: 10px;
  animation: borderRotate 4s linear infinite;
  z-index: 0;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 3px;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderRotate {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

/* Alternate left/right positioning */
.journey-item:nth-child(odd) {
  align-self: flex-start;
  transform: translateX(-20px);
}

.journey-item:nth-child(even) {
  align-self: flex-end;
  transform: translateX(20px);
}

/* Central glowing node - using data attribute for non-highlight items */
.journey-item:not(.highlight)::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--neon-blue);
  border-radius: 50%;
  border: 2px solid var(--bg-black);
  box-shadow: 
    0 0 12px rgba(0,242,255,0.9),
    0 0 24px rgba(0,242,255,0.5),
    0 0 36px rgba(0,242,255,0.3);
  animation: nodePulse 2s ease-in-out infinite;
  z-index: 10;
  transform: translateY(-50%);
}

.journey-item:nth-child(odd):not(.highlight)::before {
  right: -56px;
}

.journey-item:nth-child(even):not(.highlight)::before {
  left: -56px;
}

.journey-item:nth-child(odd):not(.highlight) .journey-line {
  right: -50px;
  background: linear-gradient(to right, 
    rgba(0,242,255,0.4), 
    transparent
  );
}

.journey-item:nth-child(even):not(.highlight) .journey-line {
  left: -50px;
  background: linear-gradient(to left, 
    rgba(0,242,255,0.4), 
    transparent
  );
}

/* Journey line connector */
.journey-line {
  content: "";
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  transform: translateY(-50%);
  z-index: 5;
}

.journey-item:hover {
  transform: translateY(-6px) translateX(0) !important;
  border-color: rgba(0,242,255,0.4);
  box-shadow: 
    0 4px 24px rgba(0,242,255,0.15),
    0 0 0 1px rgba(0,242,255,0.2) inset;
}

.journey-item:hover::before {
  animation: nodePulseIntense 1s ease-in-out infinite;
}

.year {
  font-family: 'Orbitron';
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neon-blue);
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(0,242,255,0.6);
  letter-spacing: 1px;
}

.journey-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

/* FINAL */
.journey-item.highlight {
  border-color: rgba(188,19,254,0.3);
  background: rgba(15, 10, 20, 0.4);
  width: 60%;
  align-self: center !important;
  transform: translateX(0) !important;
}

.journey-item.highlight::before {
  display: none;
}

.journey-item.highlight::after {
  display: none;
}

.journey-item.highlight:hover {
  border-color: rgba(188,19,254,0.5);
  box-shadow: 
    0 4px 24px rgba(188,19,254,0.2),
    0 0 0 1px rgba(188,19,254,0.3) inset;
}

.journey-item.highlight .year {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(188,19,254,0.8);
}

/* ================= HAMBURGER (ONLY ADDITION) ================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--neon-blue);
}

/* MOBILE */
@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5,5,8,0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

/* DESKTOP - Override mobile styles */
@media (min-width: 769px) {
  .nav-links {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 32px !important;
    padding: 0 !important;
    display: flex !important;
  }
}

/* ANIMATIONS */
@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 800px 800px; }
}

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

@keyframes nodePulse {
  0%, 100% {
    box-shadow: 
      0 0 12px rgba(0,242,255,0.9),
      0 0 24px rgba(0,242,255,0.5),
      0 0 36px rgba(0,242,255,0.3);
  }
  50% {
    box-shadow: 
      0 0 16px rgba(0,242,255,1),
      0 0 32px rgba(0,242,255,0.7),
      0 0 48px rgba(0,242,255,0.5);
  }
}

@keyframes nodePulseIntense {
  0%, 100% {
    box-shadow: 
      0 0 16px rgba(0,242,255,1),
      0 0 32px rgba(0,242,255,0.8),
      0 0 48px rgba(0,242,255,0.6);
  }
  50% {
    box-shadow: 
      0 0 20px rgba(0,242,255,1),
      0 0 40px rgba(0,242,255,1),
      0 0 60px rgba(0,242,255,0.8);
  }
}

@keyframes nodePulsePurple {
  0%, 100% {
    box-shadow: 
      0 0 16px rgba(188,19,254,1),
      0 0 28px rgba(188,19,254,0.6),
      0 0 40px rgba(188,19,254,0.4);
  }
  50% {
    box-shadow: 
      0 0 20px rgba(188,19,254,1),
      0 0 36px rgba(188,19,254,0.8),
      0 0 52px rgba(188,19,254,0.6);
  }
}

@keyframes nodePulsePurpleIntense {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(188,19,254,1),
      0 0 36px rgba(188,19,254,0.8),
      0 0 52px rgba(188,19,254,0.6);
  }
  50% {
    box-shadow: 
      0 0 24px rgba(188,19,254,1),
      0 0 44px rgba(188,19,254,1),
      0 0 64px rgba(188,19,254,0.8);
  }
}

.journey-item:nth-child(1) { animation-delay: 0.05s; }
.journey-item:nth-child(2) { animation-delay: 0.1s; }
.journey-item:nth-child(3) { animation-delay: 0.15s; }
.journey-item:nth-child(4) { animation-delay: 0.2s; }
.journey-item:nth-child(5) { animation-delay: 0.25s; }
.journey-item:nth-child(6) { animation-delay: 0.3s; }
.journey-item:nth-child(7) { animation-delay: 0.35s; }
.journey-item:nth-child(8) { animation-delay: 0.4s; }
.journey-item:nth-child(9) { animation-delay: 0.45s; }
.journey-item:nth-child(10) { animation-delay: 0.5s; }
.journey-item:nth-child(11) { animation-delay: 0.55s; }
.journey-item:nth-child(12) { animation-delay: 0.6s; }
.journey-item:nth-child(13) { animation-delay: 0.65s; }

/* RESPONSIVE: Single column on mobile */
@media (max-width: 768px) {
  .journey-vertical::before {
    left: 20px;
  }
  
  .journey-item,
  .journey-item:nth-child(odd),
  .journey-item:nth-child(even) {
    width: 100%;
    align-self: stretch;
    padding-left: 50px;
    transform: translateX(0) !important;
  }
  
  .journey-item::before {
    left: -6px !important;
    right: auto !important;
  }
  
  .journey-item::after {
    display: none;
  }
  
  .journey-item.highlight {
    width: 100%;
  }
}
