/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-gray: #f5f6fa;
    --border-color: #e1e1e1;
    --sidebar-width: 300px;
}

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

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    display: flex;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 30px 20px;
    overflow-y: auto;
    display: flex;
    align-items: center;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.profile {
    text-align: center;
}

.profile-picture-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #ecf0f1;
    overflow: hidden;
    position: relative;
}

.profile-picture {
    width: 100%;  /* Increased from 100% to zoom in */
    height: 100%; /* Increased from 100% to zoom in */
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 120%; /* Increased from 100% to ensure coverage */
    min-height: 120%; /* Increased from 100% to ensure coverage */
}

.profile h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.profile h2 {
    font-size: 1.1em;
    font-weight: 300;
    margin-bottom: 25px;
    color: #ecf0f1;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

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

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1.1em;
    opacity: 0.9;
}

.sidebar-nav a:hover {
    background-color: var(--secondary-color);
    transform: translateX(10px);
}

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 40px;
}

/* Section Row Styles */
.section-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

/* Section Styles */
section {
    padding: 40px;
    background-color: white;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.half-section {
    flex: 1;
    margin-bottom: 0;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}

.half-section::-webkit-scrollbar {
    width: 6px;
}

.half-section::-webkit-scrollbar-track {
    background: transparent;
}

.half-section::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 3px;
}

.half-section h2 {
    margin-bottom: 15px;
}

.roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.role-title {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    display: inline-block;
}

.half-section .timeline {
    margin: 10px auto;
}

.half-section .timeline-item {
    padding: 5px 30px;
    margin: 10px 0;
}

.half-section .timeline::after {
    top: 10px;
    bottom: 10px;
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

/* Summary Section Styles */
.summary p {
    font-size: 1.3em;
    line-height: 1.7;
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    left: 0;
    margin: 20px 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    top: 15px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-item .date {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Experience Card Styles */
.experience-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.experience-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.experience-title {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-logo {
    width: 100px;
    min-width: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 8px 10px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.company-logo img,
.company-logo svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.square-logo {
    width: 44px !important;
    height: 44px !important;
    padding: 0;
}

.experience-title {
    flex: 1;
}

.experience-card .role {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
}

.experience-card .company {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.experience-card .duration {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.experience-card ul {
    list-style-position: inside;
    margin-left: 20px;
}

.experience-card li {
    margin-bottom: 8px;
}

/* Project Card Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
    line-height: 1.4;
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 15px;
}

.project-card .paper-link {
    align-self: flex-start;
    margin-top: auto;
}

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

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cloud-platforms-compact {
        grid-template-columns: 1fr;
    }
    
    .platform-header-compact {
        flex-direction: row;
        align-items: center;
    }
    
    .cloud-platform-compact {
        padding: 15px;
    }
    
    .course-categories {
        grid-template-columns: 1fr;
    }
}

/* Cloud Skills Compact Styles */
.cloud-platforms-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.cloud-platform-compact {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.platform-header-compact {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cloud-logo-small {
    width: 40px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.platform-info {
    flex: 1;
}

.platform-info h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin: 0 0 8px 0;
}

.services-inline {
    color: #666;
    font-size: 1.3em;
    line-height: 1.4;
    margin-bottom: 10px;
}

.cert-items-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cert-badge-small {
    background-color: var(--secondary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.cert-badge-small:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Learning Path Styles */
.learning-path {
    margin-top: 12px;
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
}

.path-header {
    margin-bottom: 8px;
}

.path-title {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--primary-color);
}

.course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.course-item {
    font-size: 0.7em;
    color: #666;
    background-color: white;
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: inline-block;
    line-height: 1.3;
}

/* Learning Paths Section Styles */
.learning-paths-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.learning-path-standalone {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.path-header-standalone {
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.path-title-standalone {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
}

.progress-badge {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
    animation: progressGlow 2s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    from {
        box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
    }
    to {
        box-shadow: 0 2px 8px rgba(52, 152, 219, 0.5);
    }
}

.course-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-group {
    margin-bottom: 15px;
}

.category-header {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.course-tag {
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 1em;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.course-tag:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Skills Grid Styles */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.skill-category:last-child:nth-child(3n-1) {
    grid-column: 2;
}

.skill-category:last-child:nth-child(3n-2) {
    grid-column: 2 / 3;
}

.skill-category {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-badge i {
    font-size: 1.1em;
}

.skill-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Programming Languages */
.skill-badge.python {
    background-color: #3776AB;
}

.skill-badge.javascript {
    background-color: #F7DF1E;
    color: #000;
}

.skill-badge.java {
    background-color: #ED8B00;
}

.skill-badge.cpp {
    background-color: #00599C;
}

/* Machine Learning */
.skill-badge.tensorflow {
    background-color: #FF6F00;
}

.skill-badge.pytorch {
    background-color: #EE4C2C;
}

.skill-badge.keras {
    background-color: #D00000;
}

.skill-badge.sklearn {
    background-color: #F7931E;
}

/* Data Stores */
.skill-badge.postgresql {
    background-color: #316192;
}

.skill-badge.mongodb {
    background-color: #4EA94B;
}

.skill-badge.redis {
    background-color: #DC382D;
}

.skill-badge.pinecone {
    background-color: #000000;
}

/* Orchestration */
.skill-badge.kubernetes {
    background-color: #326CE5;
}

.skill-badge.docker {
    background-color: #2496ED;
}

.skill-badge.github {
    background-color: #2088FF;
}

.skill-badge.mlflow {
    background-color: #0194E2;
}

/* Cloud Services */
.skill-badge.aws {
    background-color: #232F3E;
}

.skill-badge.gcp {
    background-color: #4285F4;
}

.skill-badge.terraform {
    background-color: #7B42BC;
}

/* Monitoring */
.skill-badge.prometheus {
    background-color: #E6522C;
}

.skill-badge.grafana {
    background-color: #F46800;
}

.skill-badge.graylog {
    background-color: #FF3633;
}

.skill-badge.jaeger {
    background-color: #60D0E4;
    color: #000;
}

/* Publications Styles */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.publication-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
}

.publication-content {
    flex: 1;
}

.publication-meta {
    min-width: 200px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-left: 20px;
}

.publication-item h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1em;
}

.publication-item .authors {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 0.9em;
}

.publication-item .venue {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

.publication-meta {
    min-width: 200px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    padding-left: 20px;
}

.publication-meta .venue {
    width: 100%;
    text-align: right;
}

.paper-link {
    display: inline-block;
    color: white;
    background-color: var(--secondary-color);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    transition: all 0.3s ease;
    width: fit-content;
    margin-right: 5px;
}

.paper-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Honors Styles */
.honors-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.honor-item:last-child:nth-child(3n-1) {
    grid-column: 2;
}

.honor-item:last-child:nth-child(3n-2) {
    grid-column: 2 / 3;
}

.honor-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.honor-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.honor-item p {
    color: #666;
    margin-bottom: 5px;
}

.honor-item .year {
    color: var(--secondary-color);
    font-size: 0.9em;
    margin-top: 10px;
}

/* Resume Section Styles */
.resume {
    padding: 20px 40px !important;
}

.resume h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.resume-download {
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.download-btn i {
    font-size: 1em;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-radius: 10px;
}

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

@media (max-width: 1200px) {
    .skills-grid,
    .honors-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-category:last-child:nth-child(odd),
    .honor-item:last-child:nth-child(odd) {
        grid-column: 1 / 3;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .section-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .profile-picture-container {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .sidebar-nav a {
        font-size: 0.9em;
        padding: 5px 10px;
    }
    
    .sidebar-nav a:hover {
        transform: translateX(0) translateY(-2px);
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
    
    .skills-grid,
    .honors-list {
        grid-template-columns: 1fr;
    }

    .skill-category:last-child,
    .honor-item:last-child {
        grid-column: 1;
    }

    .skill-category,
    .honor-item {
        max-width: 100%;
        margin: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline {
        padding-left: 20px;
    }

    .timeline::after {
        left: 0;
        margin-left: 0;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 30px;
        padding-right: 0;
        left: 0 !important;
        margin: 15px 0;
    }
    
    .timeline-item::after {
        left: -10px;
        width: 16px;
        height: 16px;
        top: 10px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: -10px;
    }

    .timeline-item .content {
        padding: 15px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
    }

    .publication-item {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .publication-meta {
        min-width: unset;
        width: 100%;
        padding-left: 0;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }

    .paper-link {
        width: 100%;
        margin: 0;
        text-align: center;
        padding: 8px 15px;
    }

    .paper-link .venue-mobile {
        display: block;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9em;
        margin-bottom: 3px;
    }

    .publication-meta .venue {
        display: none;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .header {
        padding: 40px 0;
    }
    
    section {
        padding: 30px 20px;
    }
}