/* Modern Theme CSS */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-color: #ffffff;
    --text-color: #1f2937;
    --heading-color: #111827;
    --link-color: #2563eb;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --background-color: #1f2937;
    --text-color: #f3f4f6;
    --heading-color: #f9fafb;
    --link-color: #60a5fa;
    --border-color: #374151;
    --card-bg: #111827;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Modern Card Design */
.card {
    background: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

/* Modern Navigation */
.modern-nav {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme="dark"] .modern-nav {
    background-color: rgba(31, 41, 55, 0.8);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0;
}

.dark-mode-toggle:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-color);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
}

/* Banner Section */
.banner-landing {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="dark"] .banner-landing {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.banner-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
    margin-top: 0;
}

.banner-tagline {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.banner-social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.banner-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    color: var(--text-color);
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.banner-social-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

/* Two-column layout within banner */
.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.banner-two-column {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.banner-left {
    text-align: center;
}

/* Smaller font sizes for left column content */
.banner-left .banner-title {
    font-size: 2.375rem; /* 2 points smaller than 2.5rem */
}

.banner-left .banner-tagline {
    font-size: 1.0rem; /* 2 points smaller than 1.125rem */
}

.banner-right {
    text-align: left;
    padding-top: 1rem;
}

.banner-right .about-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.banner-right .about-content {
    text-align: justify;
}

.banner-right .about-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    text-align: justify;
}

.banner-right .focus-areas {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .banner-right .focus-areas {
    background: rgba(0, 0, 0, 0.2);
}

.banner-right .focus-areas h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 1rem 0;
}

.banner-right .focus-areas ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.banner-right .focus-areas li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: justify;
}

.banner-right .focus-areas li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.learn-more-btn {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.learn-more-btn:hover {
    border-bottom-color: var(--primary-color);
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .banner-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .banner-right {
        text-align: center;
        padding-top: 0;
    }
    
    .banner-right .about-content p,
    .banner-right .focus-areas li {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .banner-two-column {
        gap: 1.5rem;
    }
    
    .banner-right .focus-areas {
        padding: 1rem;
    }
}

/* Footer */
.modern-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.modern-footer .social-links {
    margin-bottom: 1rem;
}

.modern-footer p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-tagline {
        font-size: 1rem;
    }
    
    /* Smaller font sizes for left column on mobile */
    .banner-left .banner-title {
        font-size: 1.875rem; /* 2 points smaller than 2rem */
    }
    
    .banner-left .banner-tagline {
        font-size: 0.875rem; /* 2 points smaller than 1rem */
    }
    
    .banner-profile-image {
        width: 120px;
        height: 120px;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Posts Grid Layout */
.recent-posts-section {
    padding: 3rem 0;
}

.recent-posts-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--heading-color);
}

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

.post-card {
    background: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.post-card:hover {
    transform: translateY(-4px);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.post-image:hover img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.post-date {
    color: var(--text-color);
    opacity: 0.7;
}

.post-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.post-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

/* Projects Section */
.projects-section {
    padding: 3rem 0;
    background: var(--background-color);
}

.projects-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--heading-color);
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.project-card:hover {
    transform: translateY(-2px);
}

.project-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.25rem;
}

.project-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.project-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-title a:hover {
    color: var(--primary-color);
}

.project-description {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--background-color);
    transform: translateY(-1px);
}

/* Blog Page Styles */
.blog-header {
    text-align: center;
    padding: 2rem 0 3rem 0;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.blog-header p {
    font-size: 1.125rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

/* Category Filter Tabs */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: 1.5px solid var(--border-color, #e5e7eb);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--accent, #2563eb);
    color: var(--accent, #2563eb);
}

.filter-btn.active {
    background: var(--accent, #2563eb);
    border-color: var(--accent, #2563eb);
    color: #fff;
}

.all-posts-section {
    padding-bottom: 3rem;
}

/* About Page Styles */
.about-header {
    text-align: center;
    padding: 2rem 0 3rem 0;
}

.about-header .profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-header .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.about-header .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.about-header .social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* About Page Content */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.about-content h1 {
    font-size: 2.25rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-content h2 {
    font-size: 1.75rem;
    color: var(--heading-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.about-content h3 {
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}

.about-content p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-content ul {
    list-style-type: none;
    padding-left: 0;
}

.about-content ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.about-content ul li:before {
    content: "▸";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.recent-activity {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.recent-activity .section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
}

.recent-activity .section h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.recent-activity .section p {
    margin-bottom: 0;
}

.recent-activity .section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-activity .section a:hover {
    color: var(--secondary-color);
}

.resume-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .recent-activity {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-content h1 {
        font-size: 1.75rem;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
}

/* Contact Page Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Research and Software Page Styles */
.section-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.section-header .lead {
    font-size: 1.125rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

.publications-section,
.experience-section,
.projects-section,
.research-interests,
.skills-section {
    margin-bottom: 3rem;
}

.publications-section h2,
.experience-section h2,
.projects-section h2,
.research-interests h2,
.skills-section h2 {
    color: var(--heading-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.publication-item,
.experience-item,
.project-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
}

.publication-item h3,
.experience-item h3,
.project-item h3 {
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.publication-item h3 a,
.project-item h3 a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.publication-item h3 a:hover,
.project-item h3 a:hover {
    color: var(--primary-color);
}

.experience-item h4 {
    color: var(--heading-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.research-interests ul,
.skills-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.research-interests li,
.skills-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.skills-section li strong {
    color: var(--heading-color);
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--secondary-color);
}

/* Modern Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Modern Grid Layout */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Modern Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Profile Section */
.profile-section {
    text-align: center;
    padding: 2rem 0;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.2s ease-in-out;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Research & Publications */
.publication-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.publication-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Blog Posts */
.post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem 0.75rem 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}
