@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


html {
    scroll-behavior: smooth;
}
body {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
                url('/api/placeholder/1920/1080') center/cover;
    font-family: 'Garamond', serif;
}

.shadow-lg1{
    background: linear-gradient(to bottom, #1E3A8A, #2563EB);
}
.nav-item {
    transition: all 0.3s ease;
    position: relative;
    padding: 1rem;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-item i {
    width: 20px;
    transition: transform 0.3s ease;
}

.nav-item:hover {
    border-left-color: #fff;
    background: rgba(59, 130, 246, 0.1);
}

.nav-item:hover i {
    transform: scale(1.2);
}
.h-screen{
    height: 100%;
}
.nav-item.active {
    border-left-color: #1D4ED8;
    background: rgba(59, 130, 246, 0.2);
    font-weight: bold;
}

.section {
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid #CBD5E0;
    animation: fadeIn 0.8s ease-out;
}

.section.focused {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.8s ease-out;
}

.logo-container i {
    font-size: 2rem;
    color: #fff;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.pdf-container {
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 0.5rem;
    padding: 1rem;
    height: 600px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.pdf-container:hover {
    border-color: #3B82F6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #F1F1F1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #1D4ED8;
    border-radius: 4px;
}

.main-content {
    height: 100%;
    overflow-y: auto;
}

.animate-scale {
    animation: scaleIn 0.5s ease-out;
}

.btn-pulse:hover {
    animation: pulse 1s infinite;
}

/* Footer Styles */
.footer {
    background-color: #1D4ED8;
    color: white;
    transition: all 0.3s ease;
}

.footer-link:hover {
    text-decoration: underline;
}

.legal-texture {
    background-image: linear-gradient(45deg, rgba(0,0,0,0.02) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.02) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
}


.content-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    padding: 25px;
    display: none;
    max-width: 1000px;
    margin: 0 auto;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.pdf-viewer {
    width: 100%;
    height: 600px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pdf-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pdf-header {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
}

.card-hover {
    transition: transform 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
}
.email-link {
    color: #1e40af; /* blue-900 */
    text-decoration: none;
    transition: color 0.3s ease;
}
.email-link:hover {
    color: #3b82f6; /* blue-500 */
    text-decoration: underline;
}








/* Mobile Horizontal Navigation */
@media screen and (max-width: 992px) {
    
    .flex {
        position: relative;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 100;
        transition: all 0.3s ease;
    }

    
    nav .p-6 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }

    
    .logo-container {
        display: flex;
        align-items: center;
        border-bottom: none;
        margin-bottom: 0;
    }

    .logo-container .text-2xl {
        margin-left: 10px;
    }

    nav .flex.flex-col {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item {
        display: inline-flex;
        align-items: center;
        margin: 0 10px;
        padding: 10px;
        text-decoration: none;
    }

    .nav-item i {
        margin-right: 5px;
    }

    .nav-item span {
        white-space: nowrap;
    }

   
    .ml-72 {
        margin-left: 0;
        margin-top: 60px; 
    }


    .nav-scrollable {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

   
    .quick-links {
        display: none;
    }
    .min-h-screen{
        height: 60vh;
    }
}

/* Smaller Mobile Devices Fine-tuning */
@media screen and (max-width: 480px) {
    nav {
        height: 60px;
    }

    .nav-item {
        margin: 0 5px;
        padding: 8px;
        font-size: 0.9em;
    }

    .ml-72 {
        margin-top: 50px;
    }

    .min-h-screen{
        height: 60vh;
    }
}

/* Horizontal Scroll Styling */
.nav-scrollable::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.nav-scrollable {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}



#mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: 50vh;
    margin-top: -5px;
}

#mobile-menu.active {
    display: flex;
}

#mobile-menu .shadow-lg1 {
    display: flex;
}



#mobile-menu-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 60;
}

#mobile-menu-toggle div {
    width: 2rem;
    height: 0.25rem;
    margin-top: -5px;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
}


#mobile-menu {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#mobile-menu a {
    transition: transform 0.3s, color 0.3s;
    margin-top: 10px;
}

#mobile-menu a:hover {
    transform: translateX(5px);
    color: #2563eb;
}







/* General table styles */
.section .overflow-x-auto {
    overflow-x: auto;
    white-space: nowrap;
}

/* Responsive adjustments using media queries */
@media (max-width: 768px) { /* Tablets and smaller screens */
    .section table {
        font-size: 0.9rem; /* Smaller font size for better fit */
    }

    .section th, .section td {
        padding: 8px; /* Reduce padding */
    }

    .section th {
        font-size: 1rem;
    }

    .section .card-hover {
        padding: 1rem; /* Adjust padding inside the card */
    }
}

@media (max-width: 480px) { /* Mobile devices */
    .section table {
        font-size: 0.8rem; /* Even smaller text on mobile */
    }

    .section th, .section td {
        padding: 6px; /* Reduce padding further */
    }

    .section h2 {
        font-size: 1.5rem; /* Adjust heading size for mobile */
    }

    .section .card-hover {
        padding: 0.8rem; /* Reduce card padding for smaller screens */
    }
}

/* Extra-small screens (<360px) */
@media (max-width: 360px) {
    .section table {
        font-size: 0.75rem; /* Compact text for very small screens */
    }

    .section th, .section td {
        padding: 2px; /* Minimal padding */
    }

    .section h2 {
        font-size: 1.2rem;
    }


    .section th, .section td {
        padding: 6px; /* Reduce padding further */
        font-size: 0.6rem !important;
    }

    .section h2 {
        font-size: 1rem; /* Adjust heading size for mobile */
    }

    .section .card-hover {
        padding: 0.8rem; /* Reduce card padding for smaller screens */
    }
    
}







@media (max-width: 768px) {
    .content-section {
        padding: 15px;
        margin: 15px;
    }

    .pdf-header h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .pdf-viewer {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 15px;
        margin: 15px;
    }

    
    .pdf-header h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .pdf-viewer {
        height: 400px;
    }
}

@media (max-width: 360px) {
    .content-section {
        padding: 8px;
        margin: 8px;
    }

    .pdf-header h2 {
        font-size: 0.9rem;
        text-align: center;
    }

    .pdf-viewer {
        height: 300px;
    
        
    }
}


   

    
   

    .pdf-header svg {
        transition: transform 0.3s ease;
    }

    .pdf-header:hover svg {
        transform: rotate(15deg);
    }

    .pdf-header h2 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .pdf-viewer {
        width: 100%;
        height: 70vh;
        border: none;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    }

    @media (max-width: 768px) {
        .pdf-viewer {
            height: 50vh;
        }
    }


@media(max-width:1366px){
    .pdf-viewer {
        width: 100%;
        height: 70vh;
        border: none;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    }

   
        
    

}



.pdf-viewer {
    width: 100%;
    height: 80vh; /* Adjust height as needed */
    border: none;
}

@media (max-width: 768px) {
    .pdf-viewer {
        height: 60vh; /* Reduce height for smaller screens */
    }
}


.p-4{
    padding: 0.4rem;
}
.p-6{
    padding: 1rem;
}



.article-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    perspective: 1000px;
  }
  
  .article-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    /* transform-style: preserve-3d;
    transition: all 0.5s ease; */
    box-shadow: 
      0 10px 30px rgba(0,0,0,0.08),
      0 0 0 1px rgba(0,0,0,0.02);
  }
  
  .article-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 
      0 20px 40px rgba(0,0,0,0.12),
      0 0 0 1px rgba(0,0,0,0.02);
  }
  
  .tag {
    background: linear-gradient(135deg, #6366f1, #2563EB);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
  }
  
  .article-heading {
    font-size: 2.2rem;
    color: #1f2937;
    margin: 0.5rem 0 1.5rem;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1rem;
    font-family:poppins;
  }
  
  .article-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6366f1, #2563EB);
    border-radius: 2px;
  }
  
  .article-meta {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #6b7280;
    font-size: 0.95rem;
  }
  
  .article-meta .dot {
    width: 4px;
    height: 4px;
    background: #6b7280;
    border-radius: 50%;
    margin: 0 10px;
  }
  
  .read-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
        background: linear-gradient(to bottom, #1E3A8A, #2563EB);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
  }
  
  .read-more-btn::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 200px;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg);
    top: -50%;
    left: -100px;
    transition: all 0.5s ease;
  }
  
  .read-more-btn:hover::after {
    left: 120%;
  }
  
 
  
  @media (max-width: 768px) {
    .article-wrapper {
        padding: 2rem;
      }
    .article-heading {
      font-size: 1.8rem;
    }
    
    .article-card {
      padding: 1.5rem;
    }
  }
  
  
  
  
  
.footer {
    background: linear-gradient(to right, #1e3a8a, #1e40af);
    color: white;
    padding: 3rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-header {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-header p {
    color: #bfdbfe;
    font-size: 1rem;
}

.papers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.paper-link {
    background: rgba(30, 64, 175, 0.5);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s ease;
    display: block;
}

.paper-link:hover {
    background: rgba(30, 64, 175, 0.7);
}

.paper-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.paper-subtitle {
    font-size: 0.9rem;
    color: #bfdbfe;
}

.external-link-icon {
    color: #bfdbfe;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.5);
    color: #bfdbfe;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .papers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) and (max-width:2600px){
    .papers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}