/* Minimalistic Dark Portfolio - Single Page Layout */

:root {
    /* Paper-like Gradient Theme */
    --bg-primary: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 25%, #141414 50%, #0a0a0a 75%, #1a1a1a 100%);
    --bg-secondary: #242424;
    --bg-tertiary: #1e1e1e;
    --text-primary: #e8e8e8;
    --text-secondary: #c0c0c0;
    --text-muted: #888888;
    --accent: #4ade80;
    --accent-hover: #22c55e;
    --border: #404040;
    --shadow: rgba(74, 222, 128, 0.1);

    /* Tech Stack Color Coding - Muted/Comfortable Colors */
    --color-llm: rgba(255, 107, 107, 0.7);
    --color-genai: rgba(78, 205, 196, 0.7);
    --color-db: rgba(69, 183, 209, 0.7);
    --color-nlp: rgba(150, 206, 180, 0.7);
    --color-accelerated: rgba(255, 234, 167, 0.8);
    --color-graph: rgba(221, 160, 221, 0.7);
    --color-framework: rgba(253, 121, 168, 0.7);
    --color-cloud: rgba(116, 185, 255, 0.7);
    --color-deployment: rgba(85, 163, 255, 0.7);
    --color-container: rgba(0, 184, 148, 0.7);
    --color-monitoring: rgba(253, 203, 110, 0.8);

    /* Project Tag Colors - Softer/Muted */
    --tag-primary: rgba(0, 255, 136, 0.8);
    --tag-secondary: rgba(255, 107, 107, 0.8);
    --tag-accent: rgba(78, 205, 196, 0.8);
    --tag-warning: rgba(255, 234, 167, 0.9);
    --tag-success: rgba(85, 163, 255, 0.8);
    --tag-info: rgba(221, 160, 221, 0.8);

    /* Spacing - Compact */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;

    /* Typography */
    --font-family: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Border radius */
    --radius: 8px;

    /* Transitions */
    --transition: none;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(74, 222, 128, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 222, 128, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 25%, #141414 50%, #0a0a0a 75%, #1a1a1a 100%);
    background-attachment: fixed;
    backdrop-filter: blur(10px);
    padding: 0;
    height: 60px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 100%;
    width: 100%;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link.external {
    background: var(--accent);
    color: #000000;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    font-weight: 600;
}

.nav-link.external:hover {
    background: var(--accent-hover);
    color: #000000;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
}

/* Main Layout */
.main-content {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
    width: 320px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 25%, #141414 50%, #0a0a0a 75%, #1a1a1a 100%) !important;
    background-attachment: fixed;
    backdrop-filter: blur(10px);
    border-right: none;
    padding: var(--space-xl);
    overflow-y: auto;
    position: sticky;
    top: 0;
    position: relative;
    height: 100vh;
    padding-top: 60px;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
    opacity: 0.6;
}

.profile-section {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--space-lg);
    border: 2px solid var(--accent);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.profile-info h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #000000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #000000;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

/* Contact Section in Sidebar */
.contact-section {
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
}

.contact-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

.contact-method:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.contact-method i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.contact-location {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    justify-content: center;
    padding: var(--space-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.contact-location i {
    color: var(--accent);
    width: 12px;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: var(--space-xl);
    overflow-y: auto;
    max-width: calc(100vw - 320px);
}

.content-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

/* Section Separator */
.section-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: var(--space-xl) 0;
    opacity: 0.6;
}

/* Vertical Separator */
.vertical-separator {
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
    opacity: 0.6;
    align-self: stretch;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Top Section Grid Layout */
.top-section-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    align-items: start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.right-column {
    display: flex;
    flex-direction: column;
    margin-left: var(--space-xl);
}

/* Adjust content sections in grid */
.top-section-grid .content-section {
    margin-bottom: 0;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.top-section-grid .content-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

/* About Section */
.about-content p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-content a {
    color: var(--accent);
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

.achievements {
    margin-top: var(--space-xl);
}

.achievements-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-xs);
    opacity: 0.9;
}

.achievement-item i {
    color: var(--accent);
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.achievement-item span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Comprehensive Tech Stack - Compact for Right Column */
.tech-stack-comprehensive {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.tech-category {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    opacity: 0.8;
}

.tech-category:last-child {
    border-bottom: none;
}

.tech-category h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.tech-category h4 i {
    color: var(--accent);
    width: 14px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tech-tag {
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    background: #e8e8e8;
    color: #000000;
    border: 1px solid #d0d0d0;
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.exp-item {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    opacity: 0.8;
}

.exp-item:last-child {
    border-bottom: none;
}

.exp-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--shadow);
}

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

.exp-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.duration {
    font-size: 0.75rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 500;
}

.exp-item h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.company-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.company-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.exp-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.project-card {
    padding: var(--space-lg);
    position: relative;
    opacity: 0.8;
    border-right: 1px solid var(--border);
}

.project-card:last-child {
    border-right: none;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--shadow);
}

.project-card.featured {
    border-color: var(--accent);
}

.project-card.featured::before {
    content: 'Featured';
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--accent);
    color: var(--bg-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

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

.project-impact {
    font-size: 0.75rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 600;
    white-space: nowrap;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

/* Project Tags - Match Publication Type Style */
.project-tag {
    font-size: 0.7rem;
    color: var(--accent);
    /* font-family: var(--font-mono); */
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(74, 222, 128, 0.1);
    border-radius: 4px;
}

/* Publications Section */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.publication-card {
    padding: var(--space-lg);
    position: relative;
    opacity: 0.8;
    border-right: 1px solid var(--border);
}

.publication-card:last-child {
    border-right: none;
}

.publication-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--shadow);
}

.publication-card.featured {
    border-color: var(--accent);
}

.publication-card.featured::before {
    content: 'Featured';
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--accent);
    color: var(--bg-primary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.publication-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-md);
    gap: var(--space-sm);
}

.publication-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
}

.publication-type {
    font-size: 0.7rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(74, 222, 128, 0.1);
    border-radius: 4px;
}

.publication-details {
    margin-bottom: var(--space-md);
}

.publication-authors {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: var(--space-xs);
}

.publication-conference {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.publication-date {
    color: var(--accent);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.publication-abstract {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.publication-links {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.publication-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--accent);
}

.publication-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.publication-link i {
    font-size: 0.7rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--space-lg);
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 25%, #141414 50%, #0a0a0a 75%, #1a1a1a 100%) !important;
        background-attachment: fixed;
    }

    .content-area {
        max-width: 100%;
        padding: var(--space-lg);
    }

    .top-section-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .vertical-separator {
        display: none;
    }

    .tech-stack-comprehensive {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-md);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .exp-header {
        flex-direction: column;
        align-items: start;
    }

    .project-header {
        flex-direction: column;
        align-items: start;
    }

    .project-impact {
        white-space: normal;
    }

    .cta-buttons {
        flex-direction: row;
        gap: var(--space-sm);
    }

    .btn {
        flex: 1;
        font-size: 0.8rem;
        padding: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: var(--space-md);
    }

    .content-area {
        padding: var(--space-md);
    }

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

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .social-links {
        gap: var(--space-sm);
    }

    .social-links a {
        width: 32px;
        height: 32px;
    }

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

    .tech-category {
        padding: var(--space-sm);
    }

    .contact-methods {
        gap: var(--space-xs);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}

/* No animations - load all components at once */

/* Focus styles for accessibility */
.btn:focus,
.contact-method:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Remove all focus styles from navigation links */
.nav-link:focus,
.nav-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Selection color */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Mobile Responsive for Publications */
@media (max-width: 768px) {
    .publications-grid {
        grid-template-columns: 1fr;
    }

    .publication-header {
        flex-direction: column;
        align-items: start;
    }

    .publication-type {
        align-self: flex-start;
    }

    .publication-links {
        flex-direction: column;
    }

    .publication-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .publication-card {
        padding: var(--space-md);
    }

    .publication-header h3 {
        font-size: 0.9rem;
    }

    .publication-abstract {
        font-size: 0.8rem;
    }
}