/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Scheme — Dark Theme */
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --accent-color: #60a5fa;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-light: #64748b;
    --background-primary: #0f172a;
    --background-secondary: #1e293b;
    --background-accent: #334155;
    --border-color: #334155;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.2);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.2);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles for better accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure sufficient color contrast */
.tech-item:focus,
.experience-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    background-color: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    padding: var(--spacing-sm) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 10px; /* Shift header slightly to the right */
}

/* Main Content */
.main {
    min-height: calc(100vh - 120px);
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--background-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive Design Base */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%);
    padding: var(--spacing-2xl) 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
}

.profile-fallback {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.hero-text {
    text-align: left;
}

.hero-name {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.hero-titles {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.hero-summary {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-xl) 0;
        min-height: 60vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-titles {
        font-size: 1.25rem;
    }
    
    .profile-image,
    .profile-fallback {
        width: 150px;
        height: 150px;
    }
    
    .profile-fallback {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-titles {
        font-size: 1.125rem;
    }
    
    .hero-summary {
        font-size: 1rem;
    }
    
    .profile-image,
    .profile-fallback {
        width: 120px;
        height: 120px;
    }
    
    .profile-fallback {
        font-size: 2rem;
    }
}
/* Experience Section */
.experience {
    padding: var(--spacing-2xl) 0;
    background-color: var(--background-secondary);
}

.experience-list {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    background-color: var(--background-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.experience-company {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
}

.experience-duration {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
    background-color: var(--background-accent);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.experience-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.experience-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tech-tag {
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.experience-placeholder,
.tech-placeholder {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: var(--spacing-lg);
}

/* Responsive Experience Section */
@media (max-width: 768px) {
    .experience {
        padding: var(--spacing-xl) 0;
    }
    
    .experience-item {
        padding: var(--spacing-md);
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .experience-title {
        font-size: 1.125rem;
    }
    
    .experience-company {
        font-size: 1rem;
    }
}
/* Technology Stack Section */
.tech-stack {
    padding: var(--spacing-2xl) 0;
    background-color: var(--background-primary);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.tech-category {
    background-color: var(--background-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tech-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tech-item {
    background-color: var(--background-primary);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: default;
}

.tech-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Responsive Technology Stack */
@media (max-width: 768px) {
    .tech-stack {
        padding: var(--spacing-xl) 0;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .tech-category {
        padding: var(--spacing-md);
    }
    
    .tech-category-title {
        font-size: 1.125rem;
    }
    
    .tech-items {
        gap: var(--spacing-xs);
    }
    
    .tech-item {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8125rem;
    }
}
/* Performance Optimizations */
.profile-image {
    will-change: transform;
}

.experience-item,
.tech-category {
    will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .profile-image,
    .experience-item,
    .tech-category,
    .tech-item {
        transition: none;
    }
    
    .profile-image:hover {
        transform: none;
    }
    
    .experience-item:hover,
    .tech-category:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .skip-link,
    .header {
        display: none;
    }
    
    .hero {
        padding: var(--spacing-lg) 0;
        background: #0f172a;
    }
    
    .experience,
    .tech-stack {
        padding: var(--spacing-lg) 0;
        background: #0f172a;
    }
    
    .experience-item,
    .tech-category {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--background-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background-color: var(--social-color, var(--primary-color));
    color: white;
    border-color: var(--social-color, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-link i {
    font-size: 1.25rem;
}

.social-text {
    font-size: 0.875rem;
}

/* Updated Tech Items with Icons */
.tech-item {
    background-color: var(--background-primary);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: default;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    min-width: fit-content;
}

.tech-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.tech-item i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.tech-name {
    white-space: nowrap;
}

/* Responsive Social Links */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .social-link {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .social-link i {
        font-size: 1.125rem;
    }
    
    .social-text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: var(--spacing-xs);
    }
    
    .tech-item {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8125rem;
    }
    
    .tech-item i {
        font-size: 0.875rem;
        width: 14px;
    }
}
/* Projects Section */
.projects {
    padding: var(--spacing-2xl) 0;
    background-color: var(--background-primary);
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    background-color: var(--background-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.project-title-status {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.project-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status-completed {
    background-color: rgba(22, 163, 74, 0.2);
    color: #4ade80;
}

.project-status-in-progress {
    background-color: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

.project-status-planned {
    background-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.project-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.project-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background-color: var(--background-primary);
    color: var(--text-primary);
}

.project-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.github-link:hover {
    background-color: #333;
    color: white;
    border-color: #333;
}

.live-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.project-link i {
    font-size: 0.875rem;
}

.projects-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: var(--spacing-2xl);
    background-color: var(--background-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

/* Responsive Projects Section */
@media (max-width: 768px) {
    .projects {
        padding: var(--spacing-xl) 0;
    }
    
    .projects-list {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .project-item {
        padding: var(--spacing-md);
    }
    
    .project-title {
        font-size: 1.125rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .project-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .projects-placeholder {
        padding: var(--spacing-lg);
    }
}
/* Experience Type Styles */
.duration-type-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-xs);
}

.experience-type {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
    background-color: rgba(59, 130, 246, 0.15);
    padding: 0.25rem var(--spacing-xs);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive updates for experience type */
@media (max-width: 768px) {
    .duration-type-container {
        align-items: flex-start;
    }
}

/* Kubernetes Nav Button */
.k8s-btn {
    display: flex;
    align-items: center;
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(50, 108, 229, 0.4);
    border-radius: 8px;
    background: rgba(50, 108, 229, 0.08);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

.k8s-btn:hover {
    background: rgba(50, 108, 229, 0.2);
    border-color: #326CE5;
    color: #93bbfc;
    box-shadow: 0 0 16px rgba(50, 108, 229, 0.25);
    transform: translateY(-1px);
}

.k8s-btn svg {
    transition: transform 0.3s ease;
}

.k8s-btn:hover svg {
    transform: rotate(30deg);
}

@media (max-width: 480px) {
    .k8s-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    .k8s-btn svg {
        width: 14px;
        height: 14px;
    }
}
