/* css styles */

/* Footer Social Links Styling */
.page-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #e1e4e8;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e1e4e8;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: #0056b3;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.social-links i {
    font-size: 1.2em;
}

.footer-text {
    color: #6a737d;
    font-size: 0.9em;
    margin-top: 1rem;
}

/* Expertise sections styling */
.g-col-6 li {
    list-style: none;
    margin-bottom: 0.8em;
    padding-left: 0;
}

.g-col-6 i {
    width: 1.5em;
    color: #0056b3;
    margin-right: 0.5em;
}

/* Center aligned content */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Navigation bar styling */
.navbar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: #2c3e50 !important;
    font-weight: 600;
}

.navbar-nav .nav-item a {
    color: #2c3e50 !important;
    transition: color 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-item a:hover {
    color: #0056b3 !important;
}

.navbar-nav .nav-item .active {
    color: #0056b3 !important;
    font-weight: 600;
}

/* Override any default nav-link styles */
.nav-link,
.nav-link:link,
.nav-link:visited {
    color: #2c3e50 !important;
}

.nav-link:hover,
.nav-link:active {
    color: #0056b3 !important;
}

/* Floating brand styling */
.floating-brand {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.floating-brand:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0056b3;
    margin-right: 12px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.8em;
    color: #666;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .floating-brand {
        padding: 8px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

    .brand-name {
        font-size: 0.9em;
    }

    .brand-tagline {
        font-size: 0.7em;
    }
}

/* Profile Section Styling */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    color: #24292e;
    font-size: 2em;
}

.profile-title {
    color: #586069;
    font-size: 1.2em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-location {
    display: flex;
    align-items: center;
    color: #586069;
    font-size: 0.9em;
    margin-bottom: 1rem;
}

.profile-location i {
    margin-right: 0.5rem;
}

.profile-social {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    color: #0056b3;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.social-icon:hover {
    transform: translateY(-2px);
    color: #0077cc;
    opacity: 1;
}

.profile-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.profile-badge {
    background: #f1f8ff;
    color: #0366d6;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .profile-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0056b3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #0056b3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    transform: translateY(-3px);
    background: #003d7a;
}

/* Page Transitions */
.page-content {
    animation: fadeIn 0.5s ease-out;
}

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

/* Expertise Cards Styling */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.expertise-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #0056b3;
}

.expertise-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e4e8;
}

.expertise-header i {
    font-size: 1.5em;
    color: #0056b3;
    background: linear-gradient(135deg, #0056b3, #0077cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.expertise-header h3 {
    margin: 0;
    color: #24292e;
    font-size: 1.3em;
}

.expertise-content {
    display: grid;
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.skill-item:hover {
    background-color: rgba(0,86,179,0.05);
}

.skill-item i {
    width: 24px;
    color: #0056b3;
    font-size: 1.1em;
}

.skill-item span {
    color: #2c3e50;
    font-size: 0.95em;
}

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

    .expertise-card {
        margin-bottom: 1rem;
    }
}

/* Stats Grid Styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

.stat-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #0056b3;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0056b3, #0077cc);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.5em;
    font-weight: 700;
    color: #24292e;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85em;
    color: #586069;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }
}

/* ML Section Styling */
.highlight-box {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.highlight-box.text-center {
    text-align: center;
}

.highlight-box strong {
    color: #0056b3;
}

/* ML Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 1.5rem 0;
}

.g-col-6 {
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.g-col-6:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.g-col-6 h4 {
    color: #0056b3;
    margin-bottom: 1rem;
    font-size: 1.1em;
}

.g-col-6 ul {
    list-style: none;
    padding-left: 0;
}

.g-col-6 li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.g-col-6 li:before {
    content: "•";
    color: #0056b3;
    font-weight: bold;
    margin-right: 0.5rem;
}

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

    .g-col-6 {
        margin-bottom: 1rem;
    }
}

/* Professional Touches */
.highlight-box {
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.stat-number {
    font-size: 2em;
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #586069;
    font-size: 0.9em;
}

/* Blog Showcase Styling */
.blog-showcase {
    margin: 2rem 0;
}

.blog-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.blog-showcase-item {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.blog-showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-showcase-item:hover img {
    transform: scale(1.05);
}

.blog-showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.blog-showcase-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.blog-showcase-category {
    font-size: 0.85em;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.blog-showcase-link {
    color: white;
    text-decoration: none;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.section-heading i {
    color: #0056b3;
}

@media (max-width: 768px) {
    .blog-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .blog-showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Grid Styling */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.blog-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.blog-card .blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 0;
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-card > *:not(.blog-image) {
    padding: 1.5rem;
}

.blog-card > *:not(.blog-image):first-child {
    padding-top: 1.5rem;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-card .category {
    color: #0366d6;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1em;
    line-height: 1.4;
}

.blog-card h3 a {
    color: #24292e;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: #0366d6;
}

.blog-card .excerpt {
    color: #586069;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-card .meta {
    color: #6a737d;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card .meta i {
    font-size: 0.9em;
}

/* GitHub Page Styling */
.project-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-card h3 {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.project-card h3 a {
    color: #0366d6;
    text-decoration: none;
}

.project-card h3 a:hover {
    text-decoration: underline;
}

.activity-date {
    font-size: 1.1em;
    font-weight: 600;
    color: #24292e;
    margin: 1.5em 0 0.75em;
}

.activity-link {
    font-size: 0.95em;
}

.activity-details {
    font-size: 0.9em;
}

.project-card .description {
    font-size: 0.95em;
    line-height: 1.4;
}

.project-card .stats {
    font-size: 0.85em;
}

.project-card .updated {
    font-size: 0.8em;
}

/* Projects Grid Styling */
.projects-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 0;
}

/* GitHub Navigation Styling */
.github-nav {
    border-bottom: 1px solid #e1e4e8;
    margin-bottom: 24px;
    display: flex;
    position: relative;
}

.github-nav .nav-item {
    padding: 16px 8px;
    margin-right: 16px;
    color: #24292e;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: color 0.2s;
}

.github-nav .nav-item:hover {
    color: #0366d6;
    text-decoration: none;
}

.github-nav .nav-item.active {
    color: #24292e;
    border-bottom: 2px solid #fd5c63;
}

.nav-indicator {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: #fd5c63;
    transition: all 0.3s ease;
}

.content-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
}

.content-section.active {
    display: block;
    opacity: 1;
}

/* Ensure projects grid is visible */
.content-section .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

/* Hide the default headers since we're using custom nav */
#github-activity-projects {
    border-bottom: none;
    padding-bottom: 0;
}

#github-activity-projects h1 {
    display: none;
}

/* GitHub Activity Timeline */
.content-section {
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

.activity-timeline {
    padding: 0;
    width: 100%;
}

.activity-date {
    font-weight: 600;
    color: #586069;
    margin: 20px 0 10px;
    padding-left: 20px;
}

.activity-group {
    border-left: 2px solid #e1e4e8;
    margin-left: 20px;
    padding-bottom: 20px;
}

.activity-item {
    position: relative;
    padding: 10px 0 10px 20px;
    margin-bottom: 10px;
}

.activity-dot {
    position: absolute;
    left: -5px;
    top: 19px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0366d6;
    border: 2px solid #fff;
}

.activity-content {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 12px;
    margin-left: 10px;
}

.activity-link {
    color: #0366d6;
    text-decoration: none;
    font-weight: 500;
}

.activity-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.activity-details {
    margin-top: 8px;
    color: #586069;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Tabs styling */
.tabs {
    margin-top: 2rem;
}

.tab-content {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tab-content h1 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e4e8;
    color: #24292e;
}

/* General styling */
body,
.navbar,
.nav-link,
.project-card,
.description,
h1, h2, h3, h4, h5, h6,
p, span, div {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body {
    line-height: 1.6;
    color: #2c3e50;
}

/* Project card specific styling */
.project-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.project-card .description {
    font-size: 0.95rem;
    color: #586069;
    margin: 0.5rem 0;
}

.project-card .stats {
    font-size: 0.9rem;
    color: #586069;
}

.project-card .stats span {
    margin-right: 1rem;
}

.project-card .updated {
    font-size: 0.85rem;
    color: #6a737d;
    margin-top: 0.5rem;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.callout-note {
    margin-top: 2em;
    margin-bottom: 2em;
    border-left-color: #0056b3;
}
