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

:root {
    --primary-color: #0e76a8;
    --primary-hover: #0a5a7d;
    --text-dark: #172b4d;
    --text-light: #45505b;
    --bg-light: #f5f8fd;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 0 24px rgba(0, 0, 0, 0.12);
    --sidebar-bg: #1a1d29;
}

body {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-light);
}

html {
    scroll-behavior: smooth;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: var(--sidebar-bg);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-content {
    padding: 30px;
}

.sidebar-title {
    margin-bottom: 30px;
}

.sidebar-title a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: block;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 5px;
    font-size: 1rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.sidebar-footer {
    margin-top: 50px;
}

.sidebar-footer .social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.sidebar-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.sidebar-footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Main Content */
.main-content {
    margin-left: 300px;
    padding: 50px 80px;
    min-height: 100vh;
}

/* About Section */
.about-section {
    padding: 60px 0;
}

.profile-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--primary-color);
}

.profile-info h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-light);
}

.contact-info {
    margin-bottom: 25px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-light);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 12px;
    width: 20px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-download:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 118, 168, 0.4);
}

/* Experience Section */
.experience-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.subsection {
    margin-bottom: 60px;
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.timeline-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-header h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.8;
}

.timeline-description li {
    margin-bottom: 8px;
    margin-left: 20px;
}

.project-subhead {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 12px;
    font-style: italic;
}

/* Certificate Links */
.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: 8px;
}

.cert-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.cert-link i {
    font-size: 0.9rem;
}

/* Open Source Contributions Section */
.opensource-section {
    padding: 60px 0;
}

.opensource-grid {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.opensource-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
}

.opensource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.opensource-icon {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.opensource-card:hover .opensource-icon {
    transform: scale(1.1) rotate(5deg);
}

.opensource-icon i {
    font-size: 3.5rem;
    color: #2c3e50;
}

.opensource-card h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 700;
}

.opensource-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.opensource-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Certifications Section */
.certifications-section {
    padding: 60px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.cert-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.cert-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.cert-card h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.cert-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

/* Projects Section */
.projects-section {
    padding: 60px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

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

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.project-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.project-header h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
}

.project-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}

/* Skills Section */
.skills-section {
    padding: 60px 0;
    background: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-category {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-category-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.skill-category-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--white);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    padding: 50px 0 60px;
    background: linear-gradient(135deg, #f5f8fd 0%, #e8f0f7 100%);
    margin-top: 60px;
    border-radius: 30px;
    margin-left: 20px;
    margin-right: 20px;
}

.contact-section .section-title {
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.contact-section .section-subtitle {
    color: var(--text-light);
    text-align: center;
}

.contact-wrapper {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    justify-items: center;
}

.contact-item-card {
    background: var(--white);
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    max-width: 340px;
    border: 1px solid var(--border-color);
}

.contact-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.email-card .card-icon-wrapper {
    background: linear-gradient(135deg, #0e76a8 0%, #1a8cbb 100%);
}

.phone-card .card-icon-wrapper {
    background: linear-gradient(135deg, #0a5a7d 0%, #0e76a8 100%);
}

.location-card .card-icon-wrapper {
    background: linear-gradient(135deg, #1a8cbb 0%, #34a1c7 100%);
}

.card-icon-wrapper i {
    font-size: 1.3rem;
    color: var(--white);
}

.contact-item-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.card-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    word-break: break-all;
    line-height: 1.3;
}

.contact-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn i {
    font-size: 1.1rem;
}

.primary-cta {
    background: var(--white);
    color: #0077b5;
    border-color: var(--white);
}

.primary-cta:hover {
    background: #0077b5;
    color: var(--white);
    border-color: var(--white);
}

.secondary-cta {
    background: var(--white);
    color: #333;
    border-color: var(--white);
}

.secondary-cta:hover {
    background: #333;
    color: var(--white);
    border-color: var(--white);
}

.download-cta {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.download-cta:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Projects Section */
.projects-section {
    padding: 60px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

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

.project-content {
    padding: 25px;
}

.project-content h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.project-tech {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.project-link:hover {
    color: #0d8bc9;
}

/* Certifications Section */
.certifications-section {
    padding: 60px 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.cert-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.cert-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.cert-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .main-content {
        margin-left: 250px;
        padding: 40px 50px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        padding: 20px 0;
    }

    .sidebar-content {
        padding: 20px;
    }

    .sidebar-title a {
        font-size: 1.5rem;
    }

    .sidebar-nav {
        display: flex;
        justify-content: center;
    }

    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .sidebar-nav a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .sidebar-nav i {
        margin-right: 5px;
        font-size: 1rem;
    }

    .main-content {
        margin-left: 0;
        padding: 30px 20px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

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

    .timeline-header {
        flex-direction: column;
    }

    .projects-grid,
    .certifications-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-cta {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .sidebar-title a {
        font-size: 1.2rem;
    }

    .profile-header {
        padding: 25px;
    }

    .profile-info h2 {
        font-size: 1.5rem;
    }

    .bio {
        font-size: 1rem;
    }

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

    .subsection-title {
        font-size: 1.5rem;
    }

    .opensource-card {
        padding: 30px 20px;
    }

    .opensource-card h3 {
        font-size: 1.5rem;
    }

    .opensource-description {
        font-size: 0.95rem;
    }

    .skill-category-header h3 {
        font-size: 1rem;
    }

    .skill-category {
        padding: 20px;
    }

    .project-header h3 {
        font-size: 1.1rem;
    }

    .project-card {
        padding: 20px;
    }

    .contact-item-card {
        padding: 20px;
    }

    .cta-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}
