 * {
     box-sizing: border-box;
 }

 html,
 body {
     margin: 0;
     font-family: "Montserrat", sans-serif;
     background: #f3f3f3;
     color: #222;
     overflow-x: hidden;
 }

 .navbar {
     background-color: #f5f5f5;
     padding: 1rem 0;
     position: sticky;
     top: 0;
     z-index: 1000;
 }

 .navbar::after {
     content: "";
     display: block;
     width: 90%;
     height: 1px;
     background-color: #ddd;
     margin: 0 auto;
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
 }

 .nav-container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 1rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .nav-left {
     display: flex;
     align-items: center;
     gap: .8rem;
 }

 .avatar img {
     width: 28px;
     height: 28px;
     cursor: pointer;
 }

 .name-title {
     display: flex;
     align-items: baseline;
     gap: .5rem;
 }

 .my-name {
     font-weight: 700;
     color: #000;
 }

 .title {
     font-weight: 400;
     font-size: .9rem;
     color: #374151;
 }

 .nav-links {
     display: flex;
     align-items: center;
     position: relative;
 }

 .nav-links ul {
     list-style: none;
     display: flex;
     gap: 1.5rem;
     margin: 0;
     padding: 0;
 }

 .nav-links a {
     text-decoration: none;
     color: #000;
     transition: color .3s, letter-spacing .3s;
 }

 .nav-links a:hover {
     color: #2563eb;
     letter-spacing: .5px;
 }

 .close-btn {
     display: none;
     font-size: 2rem;
     position: absolute;
     top: 1rem;
     right: 1rem;
 }

 @media (max-width: 768px) {
     .nav-links {
         position: fixed;
         top: 0;
         left: -250px;
         width: 250px;
         height: 100%;
         background-color: #f5f5f5;
         flex-direction: column;
         padding-top: 3rem;
         transition: left 0.4s ease;
         border-right: 1px solid #ddd;
         z-index: 1001;
     }

     .nav-links.active {
         left: 0;
     }

     .nav-links ul {
         flex-direction: column;
         align-items: center;
         gap: 1.2rem;
         margin-top: 2rem;
     }

     .nav-links a {
         font-size: 1.1rem;
     }

     .overlay {
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         background: rgba(0, 0, 0, 0.5);
         opacity: 0;
         pointer-events: none;
         transition: opacity 0.3s ease;
         z-index: 1000;
     }

     .overlay.active {
         opacity: 1;
         pointer-events: auto;
     }
 }


 .about-college {
     background: #fff;
     text-align: center;
     padding: 3.5rem 1rem 2.5rem;
 }

 .about-college .container {
     max-width: 900px;
     margin: 0 auto;
     text-align: start;
 }

 .about-college h1 {
     font-size: 2.1rem;
     margin-bottom: .75rem;
     color: #000;
 }

 .about-college p {
     color: #444;
     line-height: 1.7;
 }

 .parallax {
     width: 100%;
     min-height: 45vh;
     background-image: url("assets/iiser-kolkata.jpg");
     background-size: cover;
     background-position: center center;
     background-attachment: fixed;
     position: relative;
 }

 .parallax::after {
     content: "";
     position: absolute;
     inset: 0;
     background: linear-gradient(to bottom, rgba(0, 0, 0, .15), rgba(0, 0, 0, .15));
 }

 @media (max-width: 768px) {
     .parallax {
         background-image: url("assets/iiser-kolkata-mobile.jpg");
         background-position: center center;
         background-size: cover;
         background-attachment: scroll;
     }
 }

 .timeline-section {
     padding: 4rem 1rem;
     text-align: center;
 }

 .timeline-section h2 {
     font-size: 2rem;
     margin-bottom: 2rem;
     color: #0a0a0a;
 }

 .timeline {
     max-width: 1100px;
     margin: 0 auto;
     padding: 2.5rem 1rem;
     position: relative;
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 2rem;
 }

 .timeline::before {
     content: "";
     position: absolute;
     left: 0;
     right: 0;
     top: 50%;
     height: 2px;
     background: #bdbdbd;
     transform: translateY(-50%);
 }

 .timeline-item {
     position: relative;
     text-align: center;
     padding: 3.6rem 1rem 3rem;
 }

 .timeline-item h3 {
     margin: 0 0 2.2rem;
     font-size: 1.05rem;
     font-weight: 700;
 }

 .timeline-item .year {
     display: block;
     margin: 1.1rem 0 .2rem;
     font-weight: 800;
     color: #00897b;
 }

 .timeline-item .detail {
     margin: 0;
     font-style: italic;
     color: #555;
 }

 .timeline-item .dot {
     position: absolute;
     top: 50%;
     left: 50%;
     width: 14px;
     height: 14px;
     background: #0a8f7a;
     border-radius: 50%;
     transform: translate(-50%, -50%);
     box-shadow: 0 0 0 3px rgba(10, 143, 122, 0.12);
 }

 @media (max-width: 900px) {
     .timeline {
         display: block;
         padding: 2rem 0;
     }

     .timeline::before {
         top: 0;
         left: 50%;
         transform: translateX(-50%);
         width: 2px;
         height: 100%;
     }

     .timeline-item {
         padding: 2.4rem 1rem 2.2rem;
         max-width: 480px;
         margin: 0 auto 2rem;
     }

     .timeline-item .dot {
         left: 50%;
         top: 50%;
         transform: translate(-50%, -50%);
     }
 }

 .achievements {
     background: #fff;
     padding: 3.5rem 1rem;
 }

 .achievements h2 {
     text-align: center;
     margin: 0 0 1.8rem;
     font-size: 1.9rem;
 }

 .achievements ul {
     list-style: none;
     padding: 0;
     margin: 0 auto;
     max-width: 900px;
 }

 .achievements li {
     background: #f5f5f5;
     margin: .9rem 0;
     padding: 1rem 1.2rem;
     border-left: 5px solid #00897b;
     border-radius: 8px;
     line-height: 1.6;
     font-size: 1.03rem;
 }

 .footer {
     background-color: #f5f5f5;
     padding: 2rem 1rem;
     font-size: .9rem;
     color: #374151;
     position: relative;
 }

 .footer::before {
     content: "";
     display: block;
     width: 90%;
     height: 1px;
     background-color: #ddd;
     margin: 0 auto;
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
 }

 .footer-container {
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     justify-content: space-between;
     flex-wrap: wrap;
     gap: 2rem;
 }

 .footer-section {
     flex: 1;
     min-width: 200px;
 }

 .footer h4 {
     font-weight: 700;
     margin-bottom: .5rem;
     color: #000;
 }

 .footer a {
     text-decoration: none;
     color: rgb(108, 0, 0);
     transition: color .3s, letter-spacing .3s;
 }

 .footer a:hover {
     color: #1d4ed8;
     letter-spacing: .5px;
 }

 .footer .copyright {
     text-align: right;
 }

 @media (max-width: 768px) {
     .footer-container {
         flex-direction: column;
         text-align: center;
     }

     .footer .copyright {
         text-align: center;
         margin-top: 1rem;
     }
 }