:root {
        --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #0066cc;
    --background-color: #ffffff;
    --card-background: #f8f9fa;
    --border-color: #eaeaea;
    --code-background: #f1f1f1;
    --shadow-color: rgba(0,0,0,0.1);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--primary-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

header, main, footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    padding: 4rem 2rem;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

nav {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--primary-color);
}

.project-filters {
    margin: 2rem 0;
    text-align: center;
}

.filter-btn {
    background: none;
    border: 1px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 20px;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.project-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

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

.tag {
    background: rgba(0, 102, 204, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.project-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

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

.model-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.metric-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* Add these new styles */
.profile-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap; /* Change to nowrap to prevent wrapping on desktop */
}

.profile-image {
    width: 225px;          /* Increased from 150px */
    height: 225px;         /* Increased from 150px */
    min-width: 225px;      /* Increased from 150px */
    min-height: 225px;     /* Increased from 150px */
    border-radius: 50%;
    overflow: hidden;
    /* border: 3px solid var(--accent-color); */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.profile-text {
    text-align: left; /* Align text to left on desktop */
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 0rem;  /* Reduced from 1rem to 0.5rem */
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-background);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    background: var(--background-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Media Query for Mobile Responsiveness */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        width: 150px;          /* Increased from 120px */
        height: 150px;         /* Increased from 120px */
        min-width: 150px;      /* Increased from 120px */
        min-height: 150px;     /* Increased from 120px */
    }

    .profile-text {
        text-align: center; /* Center text on mobile */
    }

    .social-links {
        justify-content: center;
    }
}

/* Media Queries */
@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

@media (max-width: 767px) {
    .project-card {
        padding: 1.5rem;
    }
    
    .model-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Timeline Styles - More Compact */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 1rem auto;
    padding: 0;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--accent-color);
    opacity: 0.2;
}

.timeline-item {
    position: relative;
    margin: 0 0 15px 100px;
    padding-left: 30px;
    min-height: 40px;
}

/* Dot on the timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 2px solid var(--background-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

/* Date positioning */
.timeline-date {
    position: absolute;
    left: -110px;
    top: 0;
    width: 90px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    padding-right: 20px;
}

.timeline-content {
    background: var(--card-background);
    padding: 0.75rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-top: -5px;
}

/* Mobile Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 60px;
    }

    .timeline-item {
        margin-left: 60px;
        margin-bottom: 12px;
    }

    .timeline-date {
        left: -70px;
        width: 60px;
        font-size: 0.8rem;
        padding-right: 10px;
    }
}

/* Remove the alternate side layout */
@media (min-width: 1024px) {
    .timeline-item:nth-child(even) {
        margin-left: 100px;
    }
}

/* Add to your existing CSS */
.tag[class*="Current"] {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.project-meta .tag:last-child {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.project-card {
    width: 100%;
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    margin: 0 !important; /* Force remove any margins */
    box-sizing: border-box;
}

/* Update mobile responsiveness */
@media (max-width: 767px) {
    .projects-grid {
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
}

.cert-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.cert-card {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.cert-card h3 {
    margin: 0;
    color: var(--primary-color);
}

.cert-card p {
    margin: 0.5rem 0;
    color: var(--secondary-color);
}

.cert-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

.cert-description {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Add consistent spacing for skills section */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    margin: 0;  /* Remove default margins */
}

.skill-tags {
    margin-top: 1rem;
}

/* Add consistent spacing between major sections */
section {
    margin-bottom: 4rem;
}

section:last-child {
    margin-bottom: 0;
}

/* Reset and fix project grid spacing */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.project-card {
    width: 100%;
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    margin: 0 !important; /* Force remove any margins */
    box-sizing: border-box;
}

/* Remove any other potential spacing */
.project-header,
.project-description,
.project-meta,
.project-links {
    margin-bottom: 1rem;
}

.project-links {
    margin-bottom: 0;
}

/* Ensure consistent spacing in mobile view */
@media (max-width: 767px) {
    .projects-grid {
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
}

.section-divider {
    width: 80%;
    height: 2px;
    margin: 0rem auto;  /* Reduced from 2rem to 1rem */
    background: linear-gradient(90deg, transparent, #646cff, transparent);
    position: relative;
}

/* Add consistent spacing between major sections */
section {
    margin-bottom: 4rem;
}

section:last-child {
    margin-bottom: 0;
}

/* Add alternating backgrounds to sections */
section:nth-child(even) {
    background-color: #f8f9fa;  /* Light grey background */
    margin: 0;  /* Remove default margin */
    padding: 4rem 2rem;  /* Add padding instead */
    width: 100vw;  /* Full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

section:nth-child(even) > * {
    max-width: 800px;  /* Match your main content width */
    margin-left: auto;
    margin-right: auto;
}

/* Adjust spacing between sections */
section {
    padding: 4rem 2rem;  /* Consistent padding for all sections */
    margin: 0;  /* Remove default margin */
}

/* Dark mode toggle button styles removed */

/* Dark mode styles removed */

/* Adjust mobile responsiveness */
@media (max-width: 768px) {
    section, section:nth-child(even) {
        padding: 3rem 1.5rem;
    }
}

.email-text {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    display: none;
}

.email-text.show {
    display: block;
}
