/* ============================================================== */

*:root {
    --primary-color: #3f0e5c;
    --secondary-color: #b44df0;
    --background-color: #f4f4f4e1;
    --text-color: #fcfcfc;
    --font-family: 'Roboto', 'sans-serif';
    --primary: #538fe2;
    --secondary: #691bf0bd;
    --accent: #00d9ff;
    --dark: #0a0a0a;
    --light: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* ============================================================== */
/* Typography */
/* ============================================================== */

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    height: 100vh;
    position: relative;
}

/* =============================================================== */
/* Main Navigation Bar                                            */
/* =============================================================== */
.main-nav {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    scrollbar-width: none; /* Firefox */
}

/* =============================================================== */
/* Logo and Branding                                              */
/* =============================================================== */
.main-nav .company-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-name a img {
    width: clamp(40px, 3vw, 70px);
    margin: 5px;
}

.company-info h1 {
    font-size: clamp(0.9rem, 1vw, 1.2rem);
    margin: 0;
}

.company-info p {
    margin: 2px 0 0;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(0.65rem, 0.8vw, 0.9rem);
}

/* =============================================================== */
/* Navigation Menu                                                */
/* =============================================================== */
.main-nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    font-size: clamp(0.7rem, 1.2vw, 1.1rem);
    font-weight: 600;
}

.main-nav ul li {
    display: inline;
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    height: 4.3rem;
    padding: 0 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
    background-color: var(--background-color);
    color: var(--gray-800);
    outline: none; /* optional: customize focus styling if needed */
}

/* =============================================================== */
/* Hamburger Icon (Visible on Small Screens Only)                 */
/* =============================================================== */
.main-nav .hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
}

/* =============================================================== */
/* Hero Content Container (Left Aside)                             */
/* =============================================================== */
.hero-content {
    width: clamp(190px, 20vw, 300px);
    min-height: 69.5%;
    position: fixed;
    top: clamp(11rem, 10vw, 12rem);
    margin-left: clamp(0.5rem, 1.5vw, 2rem);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    background: linear-gradient(135deg, #3f0e5c18, #00d9ff4f, #7c3aed31);
    border-radius: 10px;
}

/* =============================================================== */
/* Profile Avatar                                                  */
/* =============================================================== */
.profile-avatar {
    width: clamp(100px, 20vw, 200px);
    height: clamp(100px, 20vw, 200px);
    margin-top: clamp(1rem, 3vw, 2.5rem);
    position: relative;
}

.avatar-image {
    width: 90%;
    height: 90%;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: start;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 4rem;
    font-weight: 800;
    overflow: hidden;
    z-index: 2;
}

.avatar-image img {
    width: 100%;
    transition: transform 0.3s ease;
}

/* =============================================================== */
/* Hero Text Elements                                              */
/* =============================================================== */
.hero-info h1,
.hero-title,
.hero-dept {
    text-align: center;
    margin-bottom: clamp(0.5rem, 0.8vw, 1.2rem);
    animation: slideInUp 1s ease both;
}

.hero-info h1 {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 800;
    background: linear-gradient(135deg, #000, #333, #000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 500;
    color: var(--gray-600);
    animation-delay: 0.2s;
}

.hero-dept {
    font-size: clamp(0.8rem, 1.1vw, 1.4rem);
    color: var(--gray-600);
    animation-delay: 0.4s;
}

/* =============================================================== */
/* Social Icons                                                    */
/* =============================================================== */
.social-links {
    display: flex;
    gap: 0.1rem;
    justify-content: center;
    animation: slideInUp 1s ease 0.6s both;
}

.social-links img {
    width: clamp(20px, 3vw, 24px);
    height: clamp(20px, 3vw, 24px);
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}

.social-btn {
    width: clamp(20px, 3vw, 34px);
    height: clamp(20px, 3vw, 34px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: var(--gray-800);
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* =============================================================== */
/* Floating Stats                                                  */
/* =============================================================== */
.floating-stats {
    display: flex;
    flex-direction: row;
    gap: clamp(0.1rem, 1vw, 1rem);
}

.stat-bubble {
    padding: clamp(0.5rem, 1vw, 1rem);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    text-align: center;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.stat-bubble:nth-child(2) { animation-delay: -2s; }
.stat-bubble:nth-child(3) { animation-delay: -4s; }

.stat-number {
    font-size: clamp(0.6rem, 1.3vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: clamp(0.5rem, 0.8vw, 1.2rem);
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* =============================================================== */
/* Animation Keyframes                                             */
/* =============================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes magneticPull {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* =============================================================== */
/* Special Effects                                                 */
/* =============================================================== */
.magnetic-effect {
    transition: transform 0.3s ease;
}

.magnetic-effect:hover {
    animation: magneticPull 0.6s ease;
}

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 0.7;
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3s steps(40) 1s both, blink 1s infinite;
}

/* ========================================================== */
/* Secondary Navigation Styling                               */
/* ========================================================== */

.secondary-nav {
    width: 70%;
    position: fixed;
    top: clamp(6rem, 8vw, 6rem);
    right: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Navigation Container */
.navigation {
    position: relative;
    width: 400px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

/* Navigation List */
.navigation ul {
    display: flex;
    width: 350px;
}

/* Individual Navigation Item */
.navigation ul li {
    position: relative;
    list-style: none;
    width: 70px;
    height: 70px;
    z-index: 1;
}

/* Link Styling */
.navigation ul li a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    text-align: center;
    font-weight: 500;
}

/* Icon Styling */
.navigation ul li a .icon {
    display: block;
    line-height: 75px;
    font-size: 1.5em;
    text-align: center;
    transition: 0.5s;
    color: var(--light);
}

/* Active Icon Animation */
.navigation ul li.active a .icon {
    transform: translateY(-39px);
}

/* Text Styling */
.navigation ul li a .text {
    position: absolute;
    font-size: 0.75em;
    font-weight: 400;
    color: var(--light);
    letter-spacing: 0.05em;
    transition: 0.5s;
    opacity: 0;
    transform: translateY(20px);
}

/* Active Text Animation */
.navigation ul li.active a .text {
    opacity: 1;
    transform: translateY(10px);
}

/* Indicator Element */
.indicator {
    position: absolute;
    top: -40%;
    left: 8.8%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    border: 6px solid var(--text-color);
    transition: 0.5s;
}

/* Indicator Side Arrows */
.indicator::before,
.indicator::after {
    content: "";
    position: absolute;
    top: 40%;
    width: 20px;
    height: 20px;
    background: transparent;
}

.indicator::before {
    left: -22px;
    border-top-right-radius: 20px;
    box-shadow: 1px -10px 0 0 var(--text-color);
}

.indicator::after {
    right: -22px;
    border-top-left-radius: 20px;
    box-shadow: -1px -10px 0 0 var(--light);
}

/* Indicator Positioning for Active States */
.navigation ul li:nth-child(1).active ~ .indicator {
    transform: translateX(0);
}

.navigation ul li:nth-child(2).active ~ .indicator {
    transform: translateX(70px);
}

.navigation ul li:nth-child(3).active ~ .indicator {
    transform: translateX(140px);
}

.navigation ul li:nth-child(4).active ~ .indicator {
    transform: translateX(210px);
}

.navigation ul li:nth-child(5).active ~ .indicator {
    transform: translateX(280px);
}

/* ==============================================================
   Contents Panel Styling
   ============================================================== */
.contents {
    position: fixed;
    top: clamp(11rem, 10vw, 12rem);
    right: 0.5rem;
    margin-left: 20%;
    width: 77%;
    height: 69.5%;
    padding: 1rem;

    background: linear-gradient(135deg, #3f0e5c10, #00d9ff1e, #7c3aed15);
    color: var(--gray-800);

    border-top: 2px solid #00d9ff;
    border-radius: 10px;
    overflow-y: auto;
}

/* ==============================================================
   Section Visibility Control
   ============================================================== */
.content-section {
    display: none;
    margin: 0 auto 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.content-section.active {
    display: block;
    animation: fadeSlideIn 0.5s ease-in-out;
}

/* ==============================================================
   Section Header
   ============================================================== */
.content-section h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.content-section > hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    margin-bottom: 15px;
    border-radius: 2px;
}

/* ==============================================================
   Content Cards
   ============================================================== */
.content-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
    transition: box-shadow 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.content-card:last-child {
    margin-bottom: 0;
}

/* Card Header */
.content-card h3 {
    font-size: clamp(1rem, 2.3vw, 1.6rem);
    color: #34495e;
    font-weight: 600;
    margin-bottom: 4px;
}

.content-card hr {
    height: 3px;
    width: 30%;
    margin-bottom: 20px;
    border: none;
    background: #0098fd;
}

/* Paragraphs */
.content-card p {
    margin-bottom: clamp(1rem, 2.3vw, 1.6rem);
}

.content-card p:last-child {
    margin-bottom: 0;
}

.content-card strong {
    color: #2c3e50;
    font-weight: 600;
}

/* ==============================================================
   List Styles
   ============================================================== */
.content-card ul {
    padding-left: 20px;
    margin: 0;
}

.content-card li {
    margin-bottom: 8px;
    position: relative;
}

.content-card li::marker {
    color: #3498db;
}

/* ==============================================================
   Hyperlinks
   ============================================================== */
.content-card a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-card a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ==============================================================
   Animation (Optional)
   ============================================================== */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================================
   About Section Styles
   ============================================================== */

/* ===========================
   Education Cards
   =========================== */
.card-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1000px;
}

.card {
    background: #fff;
    border-left: 6px solid #4f46e5; /* Indigo-700 */
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.card h3 {
    margin: 0 0 0.2rem;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: #1f2937;
}

.card p {
    margin: 0.25rem 0;
    font-size: clamp(0.7rem, 1.1vw, 1rem);
    line-height: 1.1;
    font-style: italic;
}

/* ===========================
   Experience Timeline
   =========================== */
.timeline {
    width: 100%;
    max-width: 700px;
}

.entry {
    position: relative;
    margin: 0 0 1rem 1rem;
    padding-left: 1.2rem;
    border-left: 3px solid #3510b9;
    border-radius: 5px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.entry:hover {
    transform: translateX(4px);
    border-color: #00d8f5;
}

.date {
    font-weight: bold;
    color: #6b7280;
    font-size: clamp(0.7rem, 1.1vw, 1rem);
}

.title {
    margin-top: 0.2rem;
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    font-weight: 600;
}

.institution {
    font-size: clamp(0.7rem, 1.1vw, 1rem);
    color: #374151;
}

/* ===========================
   Skills (Badges)
   =========================== */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-btn {
    background-color: #2563eb;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    border: none;
    border-radius: 9999px;
    cursor: default;
    transition: background-color 0.2s ease;
}

.skill-btn:hover {
    background-color: #1e40af;
}

/* ===========================
   Publications Summary
   =========================== */
.pub-count {
    font-size: clamp(1.2rem, 1.5vw, 1.4rem);
    color: #2563eb;
    margin-left: 0.5rem;
}

.pub-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1.5rem;
    margin-top: 1rem;
}

.pub-item {
    flex: 1 1 150px;
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease;
}

.pub-item:hover {
    background: #e0f2fe;
}

.pub-item i {
    font-size: clamp(1.1rem, 1.3vw, 1.4rem);
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.pub-item h4 {
    margin: 0.2rem 0;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.pub-item p {
    margin: 0;
    text-align: center;
    font-size: clamp(0.7rem, 1.1vw, 1rem);
    color: #374151;
}

/* ===========================
   Membership Items
   =========================== */
.membership-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.membership-list li {
    padding: 1rem;
    background-color: #f9fafb;
    border-left: 4px solid #4b10b9;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    line-height: 1.2;
    color: #374151;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.member-id {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: clamp(0.7rem, 1.1vw, 0.9rem);
    color: #6b7280;
    font-style: italic;
}

/* ==============================================================
   Publications Section Layout & Filters
   ============================================================== */

.filters-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 30px;
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.filter-group {
    display: flex;
    /* justify-content: space-between; */
    width: 100%;
}

.filters-container label,
.filter-group label {
    font-size: clamp(0.875rem, 1vw, 1rem);
    font-weight: 600;
    color: #475569;
    align-content: center;
    min-width: 60px;
    position: relative;
}

.filters-container label::after,
.filter-group label::after {
    content: ':';
    position: absolute;
    right: 5px;
}

/* Search and Sort */

.filter-sort-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: clamp(200px, 30vw, 400px);
}

.search-input {
    flex: 1;
    padding: 8px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: clamp(0.75rem, 1vw, 1rem);
    color: #475569;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input::placeholder {
    color: #94a3b8;
}

.clear-search {
    padding: 8px 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background: #dc2626;
}

.clear-search:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.search-results-info {
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
    margin-left: 10px;
}

/* Dropdown Select */

.items-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.items-per-page select,
select {
    padding: 4px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: clamp(0.75rem, 1vw, 1rem);
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    margin: 0 0.5rem;
}

select:hover {
    border-color: #667eea;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ==============================================================
   Publications Grid
   ============================================================== */

.publications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
}

/* Individual Publication Card */

.publication-card {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.publication-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
}

.publication-card:hover::before {
    transform: scaleX(1);
}

/* Badges */

.pub-type-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.badge-journal {
    background: #cce2ff;
    color: #1e40af;
}

.badge-book {
    background: #dcfce7;
    color: #15803d;
}

.badge-chapter {
    background: #fef3c7;
    color: #d97706;
}

/* Titles & Metadata */

.pub-title {
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.2rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.1;
}

.pub-title:hover {
    color: #667eea;
    font-weight: 800;
    cursor: pointer;
}

.pub-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    font-size: clamp(0.75rem, 0.8vw, 0.9rem);
    color: #64748b;
}

.pub-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.4;
}

.detail-label {
    font-weight: 700;
    color: #475569;
    min-width: 80px;
    flex-shrink: 0;
    position: relative;
}

.detail-label::after {
    content: ':';
    position: absolute;
    right: -5px;
}

.detail-value {
    flex: 1;
    padding-left: 0.5rem;
}

.authors-list {
    font-style: italic;
    color: #475569;
}

.doi-link {
    color: #1b0bfc;
    font-weight: 500;
    text-decoration: none;
}

.doi-link:hover {
    text-decoration: underline;
}

.year-highlight {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: clamp(0.7rem, 0.9vw, 0.75rem);
}

/* ==============================================================
   No Results Placeholder
   ============================================================== */

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* ==============================================================
   Pagination
   ============================================================== */

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.pagination-info {
    color: #64748b;
    font-size: clamp(0.7rem, 0.9vw, 0.75rem);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    border-radius: 6px;
    font-size: clamp(0.7rem, 0.9vw, 0.75rem);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-numbers {
    display: flex;
    gap: 3px;
}

.page-number {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    border-radius: 6px;
    font-size: clamp(0.7rem, 0.9vw, 0.75rem);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-number:hover {
    background: #f1f5f9;
    border-color: #667eea;
}

.page-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-ellipsis {
    padding: 8px 4px;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

/* ==============================================================
   Section Heading
   ============================================================== */

.section-header h2 {
    font-size: 2rem;
}

/* ====================================================== */
/* Activities Section Styling */
/* ====================================================== */

.activities-grid {
    padding: clamp(1rem, 3vw, 2rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 40vw, 400px), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.activities-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: clamp(8px, 1.5vw, 12px);
    padding: clamp(0.75rem, 2vw, 1.5rem);
    transition: all 0.3s ease;
    box-shadow: 0 clamp(1px, 0.4vw, 4px) clamp(2px, 1vw, 8px) rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.activities-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(40deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.activities-card:hover {
    transform: translateY(-5px);
    border-radius: 0 20px 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
}

.activities-card:hover::before {
    transform: scaleX(1);
}

/* Header Section */
.act-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* Badge Styles */
.act-short-title,
.act-type-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.act-short-title {
    background: #00f5f5af;
    border-radius: 0 20px 20px 0;
}

.act-type-badge {
    background: #c6e70898;
    border-radius: 20px 0 0 20px;
}

/* Title */
.act-title {
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.2rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.1;
}

.act-title:hover {
    color: #667eea;
    cursor: pointer;
    font-weight: 800;
}

/* Detail Grid */
.act-details {
    display: grid;
    gap: 5px;
    font-size: clamp(0.75rem, 0.8vw, 0.9rem);
    color: #64748b;
}

.act-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.1;
}

/* Label & Value */
.act-label {
    font-weight: 700;
    color: #475569;
    min-width: clamp(70px, 10vw, 90px);
    flex-shrink: 0;
    position: relative;
}

.act-label::after {
    content: ':';
    position: absolute;
    right: -5px;
    color: #9ca3af;
}

.act-value {
    flex: 1;
}

/* ==============================================================
   Projects Section
   ============================================================== */

/* Projects Grid Layout */
.projects-grid {
    padding: clamp(1rem, 3vw, 2rem); /* Responsive padding */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw, 1.5rem); /* Responsive gap */
}

/* Project Card Layout and Hover Effect */
.projects-card {
    display: grid;
    grid-template-columns: clamp(10%, 15%, 20%) 1fr;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: clamp(8px, 1.5vw, 12px);
    box-shadow: 0 clamp(1px, 0.4vw, 4px) clamp(2px, 1vw, 8px) rgba(0, 0, 0, 0.2);
    gap: clamp(4px, 1vw, 12px);
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.projects-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
}

.projects-card:hover .pro-time {
    background: linear-gradient(135deg, #00d9ff, #7c3aed, #00d9ff);
}

/* Time Column Styling */
.pro-time {
    width: 100%;
    font-size: clamp(0.5rem, 1vw, 0.8rem);
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: clamp(6px, 1vw, 12px) clamp(8px, 2vw, 16px);
    margin: 0 auto;
    text-align: center;
}

.pro-time hr {
    width: 100%;
    height: 1px;
    border: none;
    background: #ffffff;
    margin: 0 auto;
}

.pro-time .icon {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: inherit;
}

/* Date and Time Structure */
.pro-date .time {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 2px auto;
}

/* Status and Type Badges */
.pro-status,
.pro-type-badge {
    position: absolute;
    display: inline-block;
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 5px;
}

.pro-status {
    right: 5px;
    bottom: 5px;
    background: #2ed19bd2;
}

.pro-type-badge {
    right: 5px;
    top: 5px;
    background: #c1d12ebe;
}

/* Project Title Styling */
.pro-title {
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.2rem);
    font-weight: 700;
    color: #1e293b;
    line-height: 1.1;
    margin: 0;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.pro-title:hover {
    color: #667eea;
    cursor: pointer;
    font-weight: 800;
}

/* Project Details Grid */
.pro-details {
    display: grid;
    gap: 5px;
    font-size: clamp(0.75rem, 0.8vw, 0.9rem);
    color: #64748b;
    margin-left: 5px;
    padding: 16px 0;
}

/* Individual Detail Row */
.pro-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.1;
}

/* Label and Value Pairing */
.pro-label {
    font-weight: 700;
    color: #475569;
    min-width: 80px;
    flex-shrink: 0;
    position: relative;
}

.pro-label::after {
    content: ':';
    position: absolute;
    right: -5px;
    color: #9ca3af;
}

.pro-value {
    flex: 1;
}

/* ==============================================================
   Patents Section Styles – Responsive, Clean, and Accessible
   ============================================================== */

.patents-grid {
    padding: clamp(1rem, 3vw, 2rem); /* Responsive grid padding */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 40vw, 400px), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem); /* Responsive spacing between cards */
    position: relative;
}

.patent-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: clamp(8px, 1.5vw, 12px);
    padding: 2rem 1rem 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 clamp(1px, 0.4vw, 4px) clamp(2px, 1vw, 8px) rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.patent-card::after {
    content: "Patent";
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 3px 6px;
    font-size: clamp(8px, 2vw, 12px);
    border-radius: 5px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
}

.patent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
}

.patent-title {
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.2rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.1;
}

.patent-title:hover {
    color: #667eea;
    font-weight: 800;
    cursor: pointer;
}

.patent-details {
    display: grid;
    gap: 5px;
    padding: 12px 0;
    font-size: clamp(0.75rem, 0.8vw, 0.9rem);
    color: #64748b;
    margin: 0;
}

.patent-detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 1.4;
    align-items: flex-start;
}

.patent-label {
    font-weight: 700;
    color: #475569;
    min-width: clamp(80px, 15vw, 130px);
    flex-shrink: 0;
    position: relative;
}

.patent-label::after {
    content: ':';
    position: absolute;
    right: -5px;
    color: #9ca3af;
}

.patent-value {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    line-height: 1.4;
}

/* =============================================================
   Responsive Layout: Screens up to 960px
   ============================================================= */
@media screen and (max-width: 960px) {

    /* Reset layout positioning for major sections */
    .main-nav,
    .hero-content,
    .secondary-nav,
    .contents {
        position: relative;
        width: 100%;
        flex-direction: row;
        top: auto;
        left: auto;
        bottom: auto;
        right: auto;
    }

    /* Hero section adjustments */
    .hero-content {
        margin: 0 auto 2rem;
        border-radius: 0;
        gap: 4rem;
        padding-top: 1rem;
    }

    /* Change stats layout to vertical stack */
    .floating-stats {
        flex-direction: column;
    }

    /* Make secondary nav sticky for scroll */
    .secondary-nav {
        position: sticky;
        top: 5%;
    }

    /* Adjust content layout and padding */
    .contents {
        width: 98%;
        height: 84%;
        margin: 1rem auto;
        padding: clamp(0.5rem, 2vw, 1.5rem);
        border-left: none;
    }

    /* Responsive card layout */
    .card-container {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }

    /* Ensure filter/sort options are stacked */
    .filter-sort-container {
        display: block;
    }

    /* Make publication details single-column */
    .pub-details {
        grid-template-columns: 1fr;
    }

    /* Stack pagination elements vertically */
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }

    /* Adjust activities and projects grid */
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 40vw, 300px), 1fr));
    }
}

/* =============================================================
   Mobile Navigation and Layout: Screens up to 720px
   ============================================================= */
@media (max-width: 720px) {

    /* Show hamburger icon for navigation */
    .main-nav .hamburger {
        display: block;
    }

    /* Collapse nav links into a vertical mobile menu */
    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        background: linear-gradient(90deg, var(--accent), var(--secondary));
        backdrop-filter: blur(25px);
        width: 40%;
        position: absolute;
        top: 3.7rem;
        right: 0;
        z-index: 10 !important;
        border-bottom-left-radius: 5px;
    }

    /* Show menu when toggled */
    .main-nav .nav-links.show {
        display: flex;
    }

    /* Style individual nav items */
    .main-nav .nav-links li a {
        height: 2.5rem;
        padding: 0 0.5rem;
        border-bottom: 1px solid var(--text-color);
        border-left: 1px solid #fff;
    }

    .main-nav .nav-links li a i {
        padding-left: 0.5rem;
        min-width: 2rem;
    }
}

/* =============================================================
   Extra Small Screens: up to 540px
   ============================================================= */
@media screen and (max-width: 540px) {

    /* Stack hero content vertically */
    .hero-content {
        flex-direction: column;
        gap: 1rem;
    }

    /* Display stats horizontally to save space */
    .floating-stats {
        flex-direction: row;
    }

    /* Single-column card layout for narrow screens */
    .card-container {
        grid-template-columns: 1fr;
    }
}
