/* ============================================
   NIRAJAN PAUDEL - PORTFOLIO STYLES
   Modern Developer Aesthetic
   ============================================ */

/* CSS Custom Properties - Dark Theme (Default) */
/* CU Boulder Colors: Gold #CFB87C, Black #000000, Dark Gray #565A5C, Light Gray #A2A4A3 */
:root {
    /* Crystal Indigo - High Clarity & Vibrant Balance */
    --bg-primary: #0F1115;
    /* Deep Slate (Less Blue) */
    --bg-secondary: #181A20;
    /* Neutral Slate */
    --bg-tertiary: #21252B;
    /* Mid Slate */
    --bg-card: rgba(24, 26, 32, 0.85);
    --bg-card-hover: rgba(33, 37, 43, 0.98);

    --text-primary: #F1F5F9;
    /* Bright Crisp White */
    --text-secondary: #94A3B8;
    /* Clear Slate Blue */
    --text-muted: #64748B;
    /* Muted Slate Gray */

    --accent-primary: #82D1F1;
    /* User-requested Sky Blue */
    --accent-secondary: #BAE6FD;
    /* Lighter variant */
    --accent-gradient: linear-gradient(135deg, #82D1F1 0%, #38BDF8 100%);

    --border-color: rgba(130, 209, 241, 0.2);
    --border-color-hover: rgba(130, 209, 241, 0.4);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(130, 209, 241, 0.15);

    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

[data-theme="light"] {
    /* Arctic Clarity - Crisp & Bright Light Mode */
    --bg-primary: #F8FAFC;
    /* Clean cool white */
    --bg-secondary: #F1F5F9;
    /* Light Slate wash */
    --bg-tertiary: #E2E8F0;
    /* Mid Slate depth */
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;

    --text-primary: #0F172A;
    /* Deep Slate Black */
    --text-secondary: #334155;
    /* Dark Slate Gray */
    --text-muted: #64748B;
    /* Muted Slate */

    --accent-primary: #0EA5E9;
    /* Deep Sky Blue for Light Mode */
    --accent-secondary: #82D1F1;
    /* User Sky Blue */
    --accent-gradient: linear-gradient(135deg, #0EA5E9 0%, #82D1F1 100%);

    --border-color: rgba(14, 165, 233, 0.1);
    --border-color-hover: rgba(14, 165, 233, 0.3);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 15px rgba(14, 165, 233, 0.1);
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-display);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* Animated Background Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
}

/* ============================================
   THEME TOGGLE
   ============================================ */

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-base);
    margin-left: 1.5rem;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 0.8s ease forwards;
}

.greeting {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.code-accent {
    color: var(--accent-secondary);
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

.typewriter {
    font-family: var(--font-mono);
}

.cursor {
    color: var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.8s forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease 1s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-display);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-primary:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease 1.2s forwards;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeInRight 0.8s ease 0.5s forwards;
}

.image-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    filter: grayscale(20%);
    transition: filter var(--transition-base);
}

.profile-photo:hover {
    filter: grayscale(0%);
}

.image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    z-index: 1;
    transition: all var(--transition-base);
}

.image-wrapper:hover .image-border {
    top: 15px;
    left: 15px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    transition: all var(--transition-base);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.nav-logo:hover {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    color: var(--accent-primary) !important;
}

.btn-nav:hover {
    background: var(--accent-primary);
    color: #fff !important;
}

.btn-nav::after {
    display: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--section-padding) 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
    max-width: 300px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--text-primary);
}

.about-quote {
    padding: 1.5rem;
    background: var(--bg-card);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
}

.about-quote i {
    color: var(--accent-primary);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.about-interests {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.about-interests h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.interest-list {
    list-style: none;
}

.interest-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.interest-list li:last-child {
    border-bottom: none;
}

.interest-list li:hover {
    color: var(--text-primary);
    padding-left: 0.5rem;
}

.interest-list i {
    color: var(--accent-primary);
    width: 20px;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.project-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card.featured {
    grid-column: span 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--accent-primary);
    font-size: 1.3rem;
}

.project-links-top {
    display: flex;
    gap: 0.75rem;
}

.project-links-top a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all var(--transition-base);
}

.project-links-top a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.project-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tech span {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    border-radius: 4px;
}

.project-expand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-base);
}

.project-expand:hover {
    gap: 0.75rem;
}

.project-expand i {
    transition: transform var(--transition-base);
}

/* Hidden details - only shown in modal */
.project-details {
    display: none;
}

/* Hidden projects (for filtering) */
.project-card.hidden {
    display: none;
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skills-category {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.skills-category:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-sm);
}

.skills-category h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skills-category h3 i {
    color: var(--accent-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all var(--transition-base);
}

.skill-tag:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
}

.courses-section {
    grid-column: span 2;
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.courses-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.courses-section h3 i {
    color: var(--accent-primary);
}

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

.course-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.course-item:hover {
    transform: translateX(5px);
}

.course-code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.course-name {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   PUBLICATIONS SECTION
   ============================================ */

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-card {
    display: flex;
    gap: 2rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.publication-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.publication-year {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    min-width: 70px;
}

.publication-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.publication-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.publication-content h3 a:hover {
    color: var(--accent-primary);
}

.publication-content h3 i {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.publication-content h3 a:hover i {
    opacity: 1;
}

.publication-authors {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.publication-authors strong {
    color: var(--accent-primary);
}

.publication-venue {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: all var(--transition-base);
}

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

/* ============================================
   MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.modal-close:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.modal-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-links a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: all var(--transition-base);
}

.modal-links a:hover {
    color: var(--accent-primary);
}

.modal-content .project-tech {
    margin-bottom: 1.5rem;
}

.modal-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-details h4:first-child {
    margin-top: 0;
}

.modal-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-details ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.modal-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.modal-details strong {
    color: var(--text-primary);
}

.modal-details code {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 20px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    transition: all var(--transition-base);
}

.blog-card:hover .blog-tags span {
    color: var(--text-secondary);
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
    align-self: flex-start;
}

.blog-link:hover {
    gap: 0.75rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-content {
        grid-template-columns: 1fr;
    }

    .courses-section {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 42px;
        height: 42px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: 5rem 2rem;
        transition: right var(--transition-base);
        border-left: 1px solid var(--border-color);
        gap: 1.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 101;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

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

    .project-filters {
        justify-content: center;
    }

    .publication-card {
        flex-direction: column;
        gap: 1rem;
    }

    .publication-year {
        font-size: 1.2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-line {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

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

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