body { 
    font-family: 'Arial', sans-serif; 
    margin: 0; padding: 0; 
    background: linear-gradient(to bottom, #b39ddb, #e1bee7); 
    color: #333; text-align: center; 
}

header { 
    background: #6a1b9a; 
    color: white; 
    padding: 15px 0; 
    font-size: 1.5em; 
    text-align: center; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); 
}

/* Enhanced Homepage Styles */
.content-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome-card {
    background: linear-gradient(135deg, #f8f5ff, #ffffff);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(106, 27, 154, 0.1);
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #6a1b9a10;
    border-radius: 0.5rem;
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6a1b9a;
}

.stat-label {
    color: #4a148c;
    font-size: 0.9rem;
}

.history-timeline {
    margin: 2rem 0;
    border-left: 3px solid #e1bee7;
    padding-left: 1.5rem;
}

.timeline-item {
    margin: 1.5rem 0;
    position: relative;
}

.timeline-year {
    font-weight: 700;
    color: #6a1b9a;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: #f3e5f5;
    padding: 1rem;
    border-radius: 0.5rem;
    position: relative;
}

.mission-card {
    background: #fff3ff;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid #e1bee7;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .content-grid {
        padding: 1rem;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .welcome-card {
        padding: 1.5rem;
    }
}


footer {
    z-index: 99; /* Keep below header */
}

.header-container { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

#menuBtn { 
    background: #ffffff33; 
    border: none; 
    color: white; 
    padding: 10px 15px; 
    cursor: pointer; 
    border-radius: 5px; 
    font-size: 1em; 
}

#menuBtn:hover { 
    background: #ffffff55; 
}

nav { 
    z-index: 1000;
    position: fixed; 
    left: -250px; 
    top: 0; width: 200px; 
    height: 100%; 
    background: #4a148c; 
    color: white; 
    padding-top: 60px; 
    transition: transform 0.4s ease-in-out;
    box-shadow: 4px 0px 6px rgba(0, 0, 0, 0.2); 
    will-change: transform;
}

nav.active { 
    left: 0;

}

nav ul { 
    list-style: none; 
    padding: 0; 
}

nav ul li a { 
    text-decoration: none; 
    color: white; 
    display: block; 
    padding: 12px; 
    transition: 0.3s; 
    font-size: 1.2em; 
}

nav ul li a:hover { 
    background: #7b1fa2; 
}

main {
    padding: 20px; 
    max-width: 900px; 
    margin: auto;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease-in-out;
}



.intro, .about, .publication { 
    background: rgba(255, 255, 255, 0.8); 
    padding: 20px; 
    margin: 20px 0; 
    border-radius: 10px; 
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); 
}

h1, h2 { 
    font-weight: bold; 
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2); 
}

footer { 
    background: #6a1b9a; 
    color: white; 
    padding: 10px; 
    position: fixed; 
    bottom: 0; 
    width: 100%; 
    box-shadow: 0px -4px 6px rgba(0, 0, 0, 0.1); 
}



/* Improved PDF Viewer Container */
.pdf-viewer {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    background: #f8f9fa; /* Light background for better contrast */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: visible; /* Changed from hidden */
}

/* Page Container with Scroll */
.page-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 20px;
    scroll-behavior: smooth;

}

/* Optimized Image Display */
.page {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 1000px; /* Prevent over-scaling */
    margin: 0 auto;
    display: block;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease-in-out,transform 0.4s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Better depth perception */
    image-rendering: -webkit-optimize-contrast; /* Improve text sharpness */
    transform-origin: center top;
    transform: translateY(20px);
}

.page.active {
    opacity: 1;
    z-index: 1;
    transform: translateY(0);
}

/* Zoom Controls */
.zoom-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    gap: 8px;
}

.zoom-btn {
    background: #6a1b9a;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.zoom-btn:hover {
    background: #7b1fa2;
}

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.page-transition-overlay.active {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .page-container {
        height: 60vh;
        padding: 10px;
    }
    
    .page {
        max-width: 100%;
    }
    
    .zoom-controls {
        right: 10px;
        bottom: 10px;
        padding: 8px;
    }
}
/* Add this media query for mobile */
@media (max-width: 768px) {

    nav {
        width: 100%;
        left: -100%;
    }
    
    nav.active {
        left: 0;
    }
    .pdf-viewer {
        max-width: 95%;
    }
    
    .page {
        max-height: 80vh;
    }
    
    .nav-btn {
        padding: 12px;
        font-size: 1.5em;
    }

    .page-container {
        height: 60vh;
    }
    
    .page {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}

}

/* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(106, 27, 154, 0.8);
  color: white;
  border: none;
  padding: 12px;
  font-size: 1.5em;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.nav-btn:hover {
  background: #6a1b9a;
}

/* Page Counter */
.page-counter {
  text-align: center;
  padding: 10px;
  background: rgba(255,255,255,0.9);
  font-weight: bold;
}

/* Download Button */
.download-btn {
  display: block;
  width: fit-content;
  margin: 20px auto;
  padding: 12px 25px;
  background: #6a1b9a;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #7b1fa2;
}