/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
 background: radial-gradient(circle at top, #0c234d, #060b18 60%);
  color: #e9faff;
}

/* Header */
.header {

  background: linear-gradient(90deg, #0a1b33, #210040);
  color: #ffffff;
  text-align: center;
  padding: 30px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header h1 {
  margin-top:80px;
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 1px;
}

.header h1 span {
 color: #00ff3c; /* Neon Green */
}

.header h2 {
  font-size: 18px;
  margin-top: 10px;
  font-weight: 500;
    color: #fbfdfd; /* Neon Cyan */
}

.header .highlight {
  color: #ffffff; /* Light neon purple-pink */
}

/* Timeline */
.timeline {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

.year-block {
  margin-bottom: 60px;
  position: relative;
}

.year {
  display: inline-block;
  background: linear-gradient(135deg, #21004d, #330080);
  color: #fff;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 18px;
   border: 1px solid rgba(255, 0, 255, 0.4);
  box-shadow: 0 0 10px rgba(114, 0, 255, 0.5);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
   border-top: 2px dashed rgba(0, 255, 255, 0.4)
}

.item {
  background: rgba(20, 20, 40, 0.9);
  border-left: 4px solid #00ffea;
  padding: 16px;
  border-radius: 10px;
 box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.4);
}

.item h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
    color: #00ffea;
}

.item p {
  font-size: 14.5px;
  line-height: 1.6;
 color: #d8e6ff;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 10px;
  font-size: 16px;
background: #0a0f1a;
  color: #7dfdff;
  border-top: 1px solid rgba(0, 255, 255, 0.3);
}

/* Responsive Layout */
@media (max-width: 900px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .item {
    margin-bottom: 20px;
  }
}
 /* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 40px; /* decreased height */
  z-index: 1000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  
  /* Subtle glass effect */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* straight bottom line */
  border-radius: 0; /* remove round edges */
}

/* Background when scrolled */
.navbar.scrolled {
  background: rgba(40, 40, 40, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navbar container */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px; /* exact height of navbar */
}

/* Logo */
.nav-logo img {
  height: 60px; /* slightly smaller logo to fit reduced navbar */
  width: 70px;
  
}

/* Nav Links */
.nav-links {
  font-family: 'Koulen', sans-serif;
  list-style: none;
  display: flex;
  gap: 40px;
  flex: 1; /* take remaining space opposite logo */
  justify-content: center; /* center links horizontally */
  align-items: center; /* center links vertically */
  margin: 0;
  padding: 0;
  margin-left:500px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #a08be0;
}

/* Hamburger */

/* Hamburger default hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 10000; /* on top of everything */
  margin-top:-20px;

 
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: rgb(255, 255, 255);
  border-radius: 3px;
  transition: all 0.3s ease;
  
}

/* Hamburger active animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}



/* Mobile nav links (overlay style) */
/* Mobile nav links as full-screen overlay */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #431871; /* full purple */
    gap: 40px;
    padding: 0;
    margin: 0;
    display: none; /* hidden by default */
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
  }

  .nav-links.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    font-size: 2rem;
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .nav-links a:hover {
    color: #a08be0; /* highlight on hover */
  }

  .hamburger {
    display: flex;
    margin-left: auto; /* right side */
  }
}

/* Mobile nav links */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between; /* ensures logo left, hamburger right */
    align-items: center;
  }

}


/* Medium Devices (Tablet) */
@media (max-width: 1024px) {
  .navbar {
    padding: 8px 30px;
  }

  .nav-container {
    height: 45px;
  }

  .nav-logo img {
    height: 50px;
    width: auto;

  }

  .nav-links {
    gap: 30px;
    margin-left: 0; /* remove fixed margin for better centering */
  }

  .nav-links a {
    font-size: 1.2rem;
  }
}

/* Small Devices (Mobile) */
@media (max-width: 768px) {
  .navbar {
    padding: 6px 20px;
  }

  .nav-container {
    flex-direction: column; /* stack logo and links */
    height: auto;
    gap: 8px;
  }

  .nav-logo img {
    height: 45px;
    width: auto;
    margin-left:-300px;
    align-items: center;
  }

  .nav-links {
    gap: 20px;
    flex-wrap: wrap; /* wrap links if they exceed screen width */
    justify-content: center;
    margin-left: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

/* Extra Small Devices (Phones) */
@media (max-width: 480px) {
  .navbar {
    padding: 5px 15px;
  }

  .nav-logo img {
    height: 40px;
    width: auto;
    margin-left:-150px;
    margin-top:10px;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}

