* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --accent-color: #3182ce;
    --text-color: #2d3748;
    --light-text: #718096;
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    width: 100%;
}

/* Navigation Styles */
header {
    background: linear-gradient(135deg, #2c3e50, #34495e, #2c3e50);
    color: #fff;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

nav {
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 0.4rem;
    position: relative;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
    border-radius: 4px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

nav ul li a:hover::before {
    width: 100%;
}

nav ul li a:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

nav ul li a:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

nav ul li a i {
    margin-left: 0.2rem;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav ul li a:hover i {
    transform: rotate(360deg) scale(1.2);
}

/* GitHub icon specific styling */
nav ul li a i.fab {
    margin-left: 0;
    font-size: 1.1rem;
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 0.8rem;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mobile-menu-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mobile-menu-btn:hover::before {
    width: 100px;
    height: 100px;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Main Content Styles */
main {
    padding: 2rem;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    /* margin-bottom: 40px; */
}

.hero h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-color);
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Section Styles */
.section {
    background: var(--white);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2 i {
    color: var(--accent-color);
}

.profile-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-content {
    flex: 1;
}

.profile-image {
    padding-top: 37px;
    flex: 0 0 208px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image img {
    width: 100%;
    border-radius: 8px;
}

/* Quick Facts Section */
.quick-facts {
    width: 100%;
    margin-top: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #eee;
}

.quick-facts h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #333;
    display: flex;
    align-items: center;
}

.quick-facts h3 i {
    margin-right: 0.5rem;
    color: #333;
}

.fact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.fact-item i {
    margin-right: 0.5rem;
    color: #555;
    width: 16px;
    text-align: center;
}

.fact-item:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: #333;
    /* border-bottom: 2px solid #333; */
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.profile-content h1 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
}

.profile-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

.research-themes {
    margin-bottom: 2rem;
}

.research-themes h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
}

.research-themes ul {
    list-style-type: none;
    padding-left: 0.5rem;
}

.research-themes li {
    text-align: justify;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.research-themes li:before {
    content: "•";
    color: #333;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.news-section {
    margin-bottom: 2.5rem;
}

.news-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f9f9f9;
}

/* Custom scrollbar */
.news-container::-webkit-scrollbar {
    width: 6px;
}

.news-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.news-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.news-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.news-item p {
    font-size: 0.9rem;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.more-about-me {
    text-align: justify;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.interests-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.interest-card {
    background-color: #f9f9f9;
    padding: 1.2rem;
    border-radius: 8px;
}

.interest-card h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.interest-card h3 i {
    margin-right: 0.5rem;
    color: #333;
}

.f1-section {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.2rem;
}

.f1-section h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.f1-section p {
    text-align: justify;

}

.f1-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.f1-tag {
    background-color: #333;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Footer Styles */

footer {
    background: linear-gradient(135deg, #2c3e50, #1a2a6c);
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: none;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

/* home page end */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================== */

/* Responsive Styles */
@media (max-width: 860px) {
    .mobile-menu-btn {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        background: linear-gradient(135deg, #2c3e50, #34495e, #2c3e50);
        border-radius: 0 0 12px 12px;
        border: none;
        padding: 0.8rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        transform-origin: top right;
        transform: scaleY(0);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
            opacity 0.3s ease;
    }

    nav.active {
        display: block;
        transform: scaleY(1);
        opacity: 1;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        margin: 0.3rem 0;
        width: 100%;
    }

    nav ul li a {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
        border-radius: 8px;
        color: #ecf0f1;
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    /* Mobile menu hover effect */
    nav ul li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, #3498db, #2ecc71);
        transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: -1;
        border-radius: 8px;
    }

    nav ul li a::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }

    nav ul li a:hover::before {
        width: 100%;
    }

    nav ul li a:hover {
        background: transparent;
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    }

    nav ul li a:hover::after {
        animation: ripple 1s ease-out;
    }

    .profile-section {
        flex-direction: column;
    }

    .profile-image {
        flex: 0 0 auto;
        margin-bottom: 1.5rem;
        text-align: center;
        order: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
    }

    .profile-image img {
        max-width: 30%;
        margin-bottom: 0;
        margin-right: 1rem;
    }

    .quick-facts {
        max-width: 60%;
        margin-top: 0;
        text-align: left;
    }

    .quick-facts h3 {
        font-size: 0.9rem;
    }

    .fact-item {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .news-container {
        max-height: 350px;
    }

    .info-section {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .profile-content h1 {
        font-size: 1rem;
    }

    .news-container {
        max-height: 300px;
    }

    nav ul li {
        margin-left: 0.3rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    nav ul li a {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .profile-image {
        flex-direction: column;
        align-items: center;
    }

    .profile-image img {
        max-width: 200px;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .quick-facts {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 360px) {
    .nav-container {
        padding: 0.5rem 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .mobile-menu-btn {
        font-size: 1.3rem;
        margin-left: 0.5rem;
    }

    nav ul li a {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    nav ul {
        padding: 0.3rem;
    }

    nav ul li {
        margin: 0.3rem 0;
    }

    .profile-image {
        flex-direction: column;
        align-items: center;
    }

    .profile-image img {
        max-width: 180px;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .quick-facts {
        max-width: 100%;
        width: 100%;
    }

    .quick-facts h3 {
        font-size: 0.85rem;
    }

    .fact-item {
        font-size: 0.75rem;
    }

    .profile-img {
        width: 100px;
        height: 100px;
        box-sizing: border-box;
    }

    .profile-section h2 {
        font-size: 1.2rem;
        box-sizing: border-box;
    }

    .social-links a {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        box-sizing: border-box;
    }

    .contact-info,
    .contact-form {
        padding: 20px;
        box-sizing: border-box;
    }
}