body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .container {
        width: 100%;
    }
}

/* Global Styles */
:root {
    --primary-color: #1a237e;
    --secondary-color: #f5f5f5;
    --accent-color: #ff9800;
    --text-color: #333;
    --light-text: #fff;
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #0066cc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #00aaff);
}

    /* Glow effect on hover */
    .nav-link:hover {
        color: #1a237e;
        text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
        }
        
        /* Active link styling with border */
        .nav-link:before {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            width: 0;
            height: 2px;
            background: #1a237e;
            transition: all 0.3s ease;
            transform: translateX(-50%);
            opacity: 0;
        }
        
        .nav-link:hover:before,
        .nav-link.active:before {
            width: 100%;
            opacity: 1;
        }
        
        .nav-link.active {
            color: #1a237e;
            font-weight: 600;
            text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
        }
        
        /* Hide mobile menu toggle by default */
        .menu-toggle {
            display: none;
            cursor: pointer;
            font-size: 24px;
            color: #333;
        }
        
        .menu-toggle:hover {
            color: #1a237e;
        }
        
        /* Mobile responsive styles */
        @media (max-width: 991px) {
            .nav-menu {
                position: fixed;
                top: 80px;
                left: -100%;
                flex-direction: column;
                background-color: #fff;
                width: 80%;
                height: 100vh;
                padding: 20px;
                box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
                transition: all 0.4s ease;
            }
            
            .nav-menu.active {
                left: 0;
            }
            
            .nav-item {
                margin: 10px 0;
            }
            
            .nav-link {
                padding: 12px 20px;
                border-radius: 4px;
            }
            
            .nav-link:hover {
                background-color: rgba(0, 123, 255, 0.1);
            }
            
            .menu-toggle {
                display: block;
            }
        }
        
        /* Small mobile devices */
        @media (max-width: 480px) {
            .logo img {
                height: 45px;
            }
            
            .navbar.scrolled .logo img {
                height: 40px;
            }
            
            .nav-menu {
                width: 85%;
                top: 70px;
            }
        }

        /* Hero selection */
        .college-name {
            color: rgb(37, 233, 233);
            font-family: 'Baskerville', serif;
            display: block; /* Makes it a block on mobile */
            margin-top: 5px;
            }
            
            /* Responsive adjustments */
            @media (min-width: 768px) {
                .hero-title {
                    font-size: 2rem;
                    text-align: justify;
                    white-space: nowrap;
                }
                
                .college-name {
                    display: inline; /* Shows inline on larger screens */
                    margin-left: 10px;
                }
            }
            
            @media (max-width: 480px) {
                .hero-title {
                    font-size: 1.8rem;
                }
            }







            

/* Navigation */
/*
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}
*/

.navbar {
    z-index: 1000;
}

.navbar.sticky {
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

        /* Logo Image - Responsive Sizing */
        .logo img {
            height: auto;
            width: auto;
            max-height: 100px;
            max-width: 400px;
            object-fit: contain;
        }

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0066cc;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2b5876, #4e4376);
    color: white;
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiPjwvcmVjdD4KPC9zdmc+');
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeUp 0.8s forwards 0.5s;
}

.hero-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s forwards 0.7s;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 600px;
    opacity: 0;
    animation: fadeUp 0.8s forwards 0.9s;
}

.hero-btn {
    display: inline-block;
    background: #fff;
    color: #4e4376;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeUp 0.8s forwards 1.1s;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-img {
    flex: 0 0 350px;
    position: relative;
}

.profile-img-container {
    width: 350px;
    height: 350px;
    border-radius: 10% 30% 50% 70%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    transform: rotate(-5deg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeIn 1s forwards 1.3s;
    background: radial-gradient(circle at 70% 30%, #4e4376, #2b5876);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-links {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4e4376;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeUp 0.5s forwards 1.5s;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

    /* About Section */
    #about {
        margin-top: 20px;;
        background-color: var(--secondary-color);
    }

    .stat-card {
        background-color: var(--light-text);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        padding: 30px 20px;
        text-align: center;
        height: 100%;
        transition: var(--transition);
    }

    .stat-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .stat-number {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    .stat-title {
        font-size: 1.1rem;
        color: var(--text-color);
    }

    /* Timeline Section */
    .timeline {
        margin-top: -20px;;
        position: relative;
        padding: 0;
        list-style: none;
    }

    .timeline:before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 4px;
        margin-left: -2px;
        background-color: var(--primary-color);
        border-radius: 10px;
    }

    .timeline > li {
        position: relative;
        margin-bottom: 50px;
    }

    .timeline > li:after, .timeline > li:before {
        content: " ";
        display: table;
    }

    .timeline > li:after {
        clear: both;
    }

    .timeline-panel {
        position: relative;
        float: left;
        width: 46%;
        padding: 25px;
        background-color: var(--light-text);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        transition: var(--transition);
    }

    .timeline-panel:hover {
        transform: translateX(10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .timeline > li.timeline-inverted > .timeline-panel {
        float: right;
    }

    .timeline > li.timeline-inverted > .timeline-panel:hover {
        transform: translateX(-10px);
    }

    .timeline > li > .timeline-panel:before {
        content: "";
        display: inline-block;
        position: absolute;
        top: 26px;
        right: -15px;
        border-top: 15px solid transparent;
        border-left: 15px solid var(--light-text);
        border-right: 0 solid var(--light-text);
        border-bottom: 15px solid transparent;
    }

    .timeline > li.timeline-inverted > .timeline-panel:before {
        right: auto;
        left: -15px;
        border-right-width: 15px;
        border-left-width: 0;
        border-right-color: var(--light-text);
    }

    .timeline-image {
        position: absolute;
        left: 50%;
        top: 15px;
        width: 50px;
        height: 50px;
        margin-left: -25px;
        background-color: var(--accent-color);
        color: var(--light-text);
        border-radius: 50%;
        text-align: center;
        line-height: 50px;
        font-size: 20px;
        z-index: 1;
        box-shadow: 0 0 0 8px rgba(26, 35, 126, 0.2);
    }

    .timeline-date {
        color: var(--accent-color);
        font-weight: 700;
        font-size: 0.9rem;
    }

    .timeline-title {
        margin: 10px 0;
        color: var(--primary-color);
        font-size: 1.2rem;
    }

    /* specialization */
    .specialization-area {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        margin-top: 20px;
    }

    .specialization-item {
        background: white;
        padding: 25px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        width: 300px;
        cursor: pointer;
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .specialization-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .specialization-icon {
        font-size: 40px;
        margin-bottom: 15px;
        color: #3498db;
        text-align: center;
    }

    .specialization-title {
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 15px;
        text-align: center;
        color: #2c3e50;
    }

    .specialization-description {
        font-size: 15px;
        color: #7f8c8d;
        text-align: center;
    }

    .selected {
        border: 3px solid #3498db;
        background-color: #ebf5fb;
    }

    @media (max-width: 768px) {
        .specialization-item {
            width: 100%;
        }
    }
    /* Achievements Section */
    #achievements {
        background-color: var(--secondary-color);
    }

    .achievement-card {
        background-color: var(--light-text);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        padding: 30px;
        height: 100%;
        transition: var(--transition);
    }

    .achievement-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .achievement-icon {
        font-size: 2.5rem;
        color: var(--accent-color);
        margin-bottom: 20px;
    }

    .achievement-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: var(--primary-color);
    }

            /* Activities */
            .activity-card {
                margin-top: -20px;
                background-color: var(--light-text);
                border-radius: var(--border-radius);
                overflow: hidden;
                height: 100%;
                box-shadow: var(--box-shadow);
                transition: var(--transition);
            }
    
            .activity-card:hover {
                transform: translateY(-10px);
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
            }
    
            .activity-img {
                height: 200px;
                overflow: hidden;
            }
    
            .activity-img img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: var(--transition);
            }
    
            .activity-card:hover .activity-img img {
                transform: scale(1.1);
            }
    
            .activity-content {
                padding: 20px;
            }
    
            .activity-title {
                font-size: 1.2rem;
                margin-bottom: 5px;
                color: var(--primary-color);
            }
    
            .activity-date {
                font-size: 0.9rem;
                color: var(--accent-color);
                margin-bottom: 15px;
            }
    

        /* Contact */
        .contact-info {
            margin-bottom: 30px;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 25px;
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background-color: var(--primary-color);
            color: var(--light-text);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-right: 15px;
        }

        .contact-form {
            background-color: var(--light-text);
            padding: 30px;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
        }

        .form-control {
            height: 50px;
            margin-bottom: 20px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.2);
        }

        textarea.form-control {
            height: 150px;
            resize: none;
        }

        .submit-btn {
            background-color: var(--primary-color);
            color: var(--light-text);
            border: none;
            padding: 12px 30px;
            border-radius: var(--border-radius);
            font-weight: 500;
            justify-content: center; /* Centers horizontally */
        }

        .submit-btn:hover {
            background-color: var(--accent-color);
            transform: translateY(-5px);
        }

        
        /* Publications Section */
        .publications {
            background-color: #f8f9fa;
        }

        .pub-filters {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 40px;
        }

        .pub-filter {
            padding: 8px 20px;
            margin: 5px;
            background-color: #fff;
            border: 2px solid #eee;
            border-radius: 30px;
            color: #666;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .pub-filter.active, .pub-filter:hover {
            background-color: #0066cc;
            border-color: #0066cc;
            color: #fff;
        }

        .pub-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
        }

        .pub-card {
            background-color: #fff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .pub-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .pub-img {
            height: 200px;
            overflow: hidden;
        }

        .pub-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .pub-card:hover .pub-img img {
            transform: scale(1.1);
        }

        .pub-content {
            padding: 20px;
        }

        .pub-type {
            display: inline-block;
            padding: 5px 10px;
            background-color: rgba(0, 102, 204, 0.1);
            color: #0066cc;
            border-radius: 5px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .pub-title {
            font-size: 1.3rem;
            margin-bottom: 10px;
            color: #333;
        }

        .pub-authors {
            color: #666;
            margin-bottom: 15px;
            font-size: 0.9rem;
        }

        .pub-journal {
            display: flex;
            justify-content: space-between;
            color: #888;
            font-size: 0.9rem;
            margin-bottom: 15px;
        }

        .pub-links {
            display: flex;
            gap: 10px;
        }

        .pub-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            background-color: #f1f1f1;
            border-radius: 50%;
            color: #666;
            transition: all 0.3s ease;
        }

        .pub-link:hover {
            background-color: #0066cc;
            color: #fff;
        }

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #0066cc;
}

.footer-text {
    max-width: 500px;
    margin: 0 auto 30px;
    color: #aaa;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-link {
    color: #fff;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}


.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.footer-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-icon:hover {
    transform: translateY(-5px);
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .navbar .container {
        padding: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }
    
/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero-img {
        margin: 0 auto;
    }

    .about-content, .contact-content {
        flex-direction: column;
    }

    .about-img {
        margin-bottom: 30px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .timeline::after {
        left: 40px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 30px;
        top: 30px;
    }

    .timeline-item:nth-child(odd)::after {
        right: auto;
        left: 30px;
    }

    .timeline-item:nth-child(even)::after {
        left: 30px;
    }
}

@media screen and (max-width: 768px) {
    .navbar .container {
        padding: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 100px 0 50px;
        height: auto;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .pub-filters {
        flex-direction: column;
        align-items: center;
    }

    .pub-filter {
        width: 80%;
        text-align: center;
        margin: 5px 0;
    }

    .pub-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .hero-img {
        flex: 0 0 250px;
    }

    .profile-img-container {
        width: 250px;
        height: 250px;
    }
}

        /* Back to Top Button Styles */
        .back-to-top-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: white;
            color: black;
            border: none;
            border-radius: 20px; /* Pill shape */
            padding: 10px 20px;
            font-size: 18px;
            cursor: pointer;
            z-index: 1000;
            display: none;
            transition: all 0.3s ease-in-out;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            transform: scale(0.8);
        }

        .back-to-top-btn:hover {
            background-color: white;
            transform: scale(1);
            box-shadow: 0 6px 15px rgba
        }


        /* Show the button when scrolling up */
        .show {
            display: block !important;
        }

        /* Smooth Scroll Behavior */
        html {
            scroll-behavior: smooth;
        }