:root {
    --primary: #2563eb;
    --secondary: #1e293b;
    --text: #334155;
    --light: #f8fafc;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

/* Header/Hero */
header {
    padding: 8rem 0 5rem;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin: 1.5rem 0;
}

/* Buttons */
.cta-buttons {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    margin-right: 1rem;
}

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

.btn.secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* Sections */
section {
    padding: 4rem 0;
    background-color: var(--light);
}

.section-title {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 3rem;
    text-align: center;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.skill-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    margin-bottom: 0.5rem;
}

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

.project-card {
    padding: 2rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.project-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.tech-tags {
    margin: 1rem 0;
}

.tech-tags span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light);
    border-radius: 2rem;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.cert-card img {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

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

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        grid-row: 1;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-description {
        text-align: left;
        padding: 0 1rem;
    }
}

/* Add these styles to your existing CSS file */

.project-slider {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slider-image {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
    z-index: 2;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}



#opensource {
    background-color: var(--light);  /* explicitly set to match other sections */
}
.contributions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contribution-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contribution-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contribution-header svg {
    color: #24292e;
}

.contribution-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.contribution-card p {
    color: #586069;
    margin-bottom: 1rem;
}

.contribution-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eaecef;
}

.contribution-meta span {
    color: #586069;
    font-size: 0.9rem;
}

.contribution-meta a {
    color: #0366d6;
    text-decoration: none;
    font-size: 0.9rem;
}

.contribution-meta a:hover {
    text-decoration: underline;
}

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

/* My published Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
}

.article-card p {
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.article-meta {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.article-meta span {
    color: #666;
    font-size: 0.9rem;
}

.article-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.article-link:hover {
    text-decoration: underline;
}

/* My published Articles Section END */


/*

Certifications Slider
*/

.cert-slider {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.cert-slider .slider-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.cert-slide {
    display: flex;
    gap: 20px;
    min-width: 100%;
}

.cert-card {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cert-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.cert-card img {
    max-width: 200px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.cert-card:hover {
    transform: translateY(-5px);
    transition: transform 0.2s ease;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 1;
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

/* Responsive layout */
@media (max-width: 768px) {
    .cert-slide {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .cert-card {
        min-width: 250px;
    }
}

/* Certifications Slider END */

/* */
.btn svg {
    margin-right: 1px;
    vertical-align: middle;
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: calc(50% + 40px);
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content h3 {
    color: var(--secondary);
    margin-bottom: 4px;
}

.timeline-content h4 {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-content ul {
    list-style-position: inside;
    color: var(--text);
}

.timeline-content li {
    margin-bottom: 8px;
}

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

    .timeline-dot {
        left: 32px;
    }

    .timeline-content {
        width: calc(100% - 84px);
        margin-left: 84px;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        left: 0;
    }
}

.experience-summary {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text);
    font-size: 1.1rem;
}

.experience-summary span {
    color: var(--primary);
    font-weight: 600;
}

.repo-description {
    margin: 1rem 0;
}

.repo-description p {
    margin: 0.5rem 0;
}

.contribution-details {
    font-size: 0.9rem;
    color: #666;
}