:root {
    --primary-color: #1a1a1a; /* Dark gray */
    --secondary-color: #4a4a4a; /* Medium gray */
    --accent-color: #d1b3ff; /* Light purple */
    --light-bg: #2c2c2c; /* Darker background */
    --dark-bg: #121212; /* Almost black */
    --secondary-text: #b0b0b0; /* Muted gray for secondary text */
		--text-link: #a4effc; /* Light purple for links */
		--lighter-color: #dac9e2 /*Very light purple*/;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: #e0e0e0; /* Light gray text */
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.main-container {
    min-height: 100vh;
    display: grid;
    grid-template-areas:
        "header"
        "content"
        "footer";
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Header Styles */
.main-header {
    grid-area: header;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
}

.navbar-nav .nav-link {
    color: white !important;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #d1b3ff !important; /* Lighter purple hover color for nav links */
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: var(--secondary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23b0b0b0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M5 7h20M5 15h20M5 23h20'/%3e%3c/svg%3e");
}

/* Center navbar links */
.main-header .navbar-collapse {
    justify-content: center;
}

.main-header .navbar-nav {
    margin: 0;
}

/* Sidebar Styles */
.sidebar {
    display: none;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid var(--secondary-color);
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-block;
    margin: 0 0.5rem;
    color: var(--secondary-text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info .contact-item {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.contact-item i,
.contact-item svg {
    width: 20px;
    margin-right: 0.8rem;
    color: var(--secondary-text);
}

/* Main Content Styles */
.main-content {
    grid-area: content;
    padding: 2rem;
    background: var(--primary-color);
    display: block;
    max-width: 100%;
    overflow-x: hidden;
}

.hero-section {
    background: var(--primary-color); /* Dark background for hero section */
    color: #e0e0e0; /* Light text */
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff; /* Bright white for better readability */
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #dcdcdc; /* Light gray for better contrast */
    margin-bottom: 1.5rem;
}

.hero-name {
    font-size: 2.8rem;
    font-weight: bold;
    color: white;
    margin: 1.5rem 0 0.5rem 0;
}

.hero-occupation {
    font-size: 1.3rem;
    color: var(--secondary-text);
    font-weight: 500;
}

.hero-institution {
    font-size: 1.1rem;
    color: var(--secondary-text);
    font-weight: 400;
}

.hero-text {
    text-align: center;
}

.hero-quote {
    font-style: italic;
    text-align: center;
}

.hero-quote p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.8;
}

.section {
    margin-bottom: 3rem;
    background: var(--primary-color); /* Dark background for sections */
    color: #e0e0e0; /* Light text */
}

.section-title {
    font-size: 1.8rem;
    color: white;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: var(--light-bg); /* Darker card background */
    color: #e0e0e0; /* Light text */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 87, 34, 0.2); /* Subtle orange shadow */
}

/* Image card specific styles */
.image-card {
    width: fit-content;
    margin: 0.5rem;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--light-bg), var(--dark-bg));
    border: 1px solid var(--light-bg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.image-card .card-img-top {
    width: 100%;
    max-width: 300px;
}

.image-card .card-body {
    padding: 1rem;
    color: var(--accent-color);
}
.image-card .card-title {
    color: #fff;
    margin-bottom: 0.25rem;
}

.image-card .card-text {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.skill-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.2rem;
}

/* Footer Styles */
.main-footer {
    grid-area: footer;
    background: var(--dark-bg);
    color: white;
    padding: 2rem;
    text-align: center;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-section h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #e0e0e0; /* Light text for footer links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: purple; /* Purple hover color for links */
}

.btn-outline-primary {
    background: transparent; /* Default transparent background */
    border: 2px solid purple; /* Purple outline */
    color: grey; /* Grey text */
}

.btn-outline-primary:hover {
    background: purple; /* Purple fill on hover */
    color: white; /* White text on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        grid-template-areas:
            "header"
            "content"
            "footer";
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-occupation {
        font-size: 1.1rem;
    }

    .hero-quote {
        font-size: 1rem;
    }

    .card-right,
    .card-left {
        float: none;
        margin: 1rem auto;
        display: block;
    }

    .image-card {
        width: 100%;
        max-width: 100%;
    }

    .image-card img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .card-large {
        max-width: 100%;
    }

    #research {
        overflow-x: hidden;
    }

    #research p {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .MathJax {
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
    }
}

.btn-custom {
    background: var(--secondary-color);
    border-color: var(--accent-color);
    color: white;
    padding: 0.6rem 1.5rem;
    margin-left: 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: #fff;
}

.text-muted {
    color: var(--secondary-text) !important;
}

.text-icon{
    color: var(--secondary-text) !important;
}

.text-icon:hover{
    color: var(--accent-color) !important;
}


.image-large{
    width: 500px !important;
    max-width: 500px !important;

}

.card-large{
   max-width:500px;
}


.card-right{
    float: right;
}

.card-left{
    float: left;
}

.card-text{
    text-align: center;
}

.card-title{
    text-align: center;
}

/* Portrait Photo Styles */
.portrait-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    background: var(--primary-color);
}

.portrait-container {
    position: relative;
    max-width: 500px;
    text-align: center;
    width: 100%;
}

.portrait-image {

    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(209, 179, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--secondary-color);
    object-fit: cover;
}

.portrait-info {
    text-align: center;
    margin-top: 2rem;
}

.portrait-name {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.portrait-title {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.portrait-bio {
    font-size: 1rem;
    color: var(--secondary-text);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.portrait-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.portrait-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

.portrait-social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--accent-color)
}

@media (max-width: 768px) {
    .portrait-section {
        padding: 2rem 1rem;
    }

    .portrait-image {
        border-radius: 10px;
    }

    .portrait-name {
        font-size: 1.8rem;
    }

    .portrait-title {
        font-size: 1rem;
    }

    .portrait-bio {
        font-size: 0.95rem;
    }
}

.section-divider {
    border: none;
    border-top: 2px solid var(--lighter-color);
    margin: 2rem 0;
}

.header {
    color: var(--accent-color);
}

.subheader {
    color: var(--accent-color);
}

/* Research page font size */
#research {
    font-size: 1.08rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.about-section p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.8;
    max-width: 800px; 
    margin: 0 auto;
}
