/*
 * Custom Styles for Abhishek Kumar Pandey's Academic Website
 */

/* ----------------------------------
 * Fonts and Variables
 * ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Lato:wght@400;700&display=swap');

:root {
    --primary-color: #0d2c4e; /* Deep Blue */
    --secondary-color: #f8f9fa; /* Light Gray */
    --accent-color: #ffc107; /* Gold/Yellow */
    --text-color: #343a40;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Lato', sans-serif;
}

/* ----------------------------------
 * General & Body
 * ---------------------------------- */
body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--primary-color);
}

.section-title {
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Align section titles to the left for non-centered content */
.section-title:not(.text-center)::after {
    left: 0;
    transform: translateX(0);
}

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

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

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #091e36;
    border-color: #091e36;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.badge.bg-primary-custom {
    background-color: var(--primary-color);
}


/* ----------------------------------
 * Navigation Bar
 * ---------------------------------- */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color) !important;
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
}

.nav-link {
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--accent-color) !important;
}

/* ----------------------------------
 * Hero & Page Headers
 * ---------------------------------- */
.hero-section {
    height: 60vh;
    background: linear-gradient(rgba(13, 44, 78, 0.8), rgba(13, 44, 78, 0.8)), url('https://www.toptal.com/designers/subtlepatterns/uploads/double-bubble-outline.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    animation: fadeIn 1.5s ease-in-out;
}

.profile-img-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
}

#typing-text-container {
    min-height: 28px; /* Prevents layout shift */
}

#typing-text {
    color: var(--accent-color);
    font-weight: 600;
    border-right: 2px solid var(--accent-color);
    animation: blink 0.7s step-end infinite;
}
@keyframes blink { from, to { border-color: transparent } 50% { border-color: var(--accent-color); } }

.page-header {
    padding: 60px 20px;
    background: var(--primary-color);
}

.page-header h1, .page-header .lead {
    color: #fff;
}


/* ----------------------------------
 * Specific Sections & Cards
 * ---------------------------------- */

/* Homepage Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Publications List */
.publication-list .list-group-item {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}
.publication-list .list-group-item:hover {
    border-left-color: var(--accent-color);
    background-color: #fcfcfc;
    transform: translateX(5px);
}

/* About Page Expertise Cards */
.expertise-card {
    border: 0;
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
}
.expertise-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Research Page */
.interest-tag {
    background-color: var(--secondary-color);
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
}
.project-card {
    background-color: var(--secondary-color);
    border: none;
}

/* Contact Page */
.contact-card {
    background-color: var(--secondary-color);
    border: none;
}
.contact-card i {
    color: var(--primary-color);
}

/* ----------------------------------
 * Footer & Scroll-to-Top
 * ---------------------------------- */
footer {
    background-color: #212529 !important;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    transition: opacity 0.3s ease;
}
.scroll-to-top:hover {
    background-color: var(--accent-color);
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}