/* CSS Custom Properties for consistent colors */
:root {
    --primary-title-color: #ffffff;
    --secondary-text-color: #8b92ff; /* fallback, will be overridden by JavaScript */
}

/* Essential Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Background gradient will be set dynamically via JavaScript */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* fallback */
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Remove Radzen layout backgrounds to show our custom design */
/*.rz-body {
    background: transparent !important;
    --rz-body-padding: 0;
}*/

.rz-layout {
    background: transparent !important;
    min-height: 100vh !important;
}

.rz-layout > .rz-body {
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    min-height: 100vh !important;
}

/* Add vertical centering specifically for business card pages */
.rz-layout > .rz-body:has(.card-container) {
    align-items: center !important;
}

/* Business Card Container - Core Layout */
.card-container {
    width: 1280px;
    max-width: 100vw;
    height: 720px;
    max-height: 100vh;
    padding: 20px;
    margin: 0 auto;
}

.main-card {
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.03) 32%, rgba(255,255,255,0.03) 34%, transparent 36%),
        linear-gradient(-45deg, transparent 30%, rgba(255,255,255,0.02) 32%, rgba(255,255,255,0.02) 34%, transparent 36%),
        #1a1a1a;
    background-size: 20px 20px;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    height: 100%;
    width: 100%;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    display: flex;
}

/* Navigation Section */
.nav-section {
    width: 280px;
    background: transparent;
    position: relative;
    z-index: 10;
    padding: 30px 40px 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.sidebar-logo .initials {
    font-size: 2.2rem;
    font-weight: 300;
    height: 64px;
    color: var(--secondary-text-color);
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* AKA Section Styling */
.aka-section {
    margin: 0 0 6px 0;
    text-align: center;
    line-height: 1.2;
}

.aka-section .aka-label {
    display: block;
    color: rgba(128, 128, 128, 0.8);
   /* font-style: italic;*/
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.aka-section .aka-name {
    display: block;
    /* ReSharper disable once CssNotResolved */
    color: var(--rz-primary);
    font-weight: 500;
    font-size: 0.85rem;
}



.sidebar-logo h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0px;
    margin-top: -5px !important;
    line-height: 1.2;
}

.sidebar-logo .tagline {
    font-size: 1rem;
    color: #8b92ff;
    font-weight: 400;
}

/* Navigation Buttons */
.nav-button {
    background: linear-gradient(135deg, rgba(40, 40, 50, 0.9) 0%, rgba(30, 30, 40, 0.8) 100%) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    color: white !important;
    padding: 18px 25px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    text-align: left !important;
    border-radius: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
    width: 100% !important;
    font-family: inherit !important;
    display: block !important;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.8s ease;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    border-color: rgba(102, 126, 234, 0.4) !important;
    transform: translateX(8px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15) !important;
}

.nav-button.active {
    background: linear-gradient(135deg, var(--gradient-start, #667eea) 0%, var(--gradient-end, #764ba2) 100%) !important;
    border-color: var(--gradient-start, #667eea) !important;
    color: #ffffff !important;
    transform: translateX(12px) !important;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3) !important;
}

.nav-button.active::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--gradient-start, #667eea), transparent);
    border-radius: 2px;
}

/* Gradient Separator */
.gradient-separator {
    width: 6px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(102, 126, 234, 0.3) 10%,
        var(--gradient-start, #667eea) 20%,
        var(--gradient-end, #764ba2) 40%,
        var(--gradient-start, #667eea) 60%,
        rgba(102, 126, 234, 0.3) 90%,
        transparent 100%
    );
    position: relative;
}

.gradient-separator::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transform: translateX(-50%);
}

/* Content Section */
.content-section {
    flex: 1;
    background: transparent;
    position: relative;
    padding: 0px 70px 30px 70px;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.content-panel {
    display: none;
    animation: fadeInSlide 0.6s ease-out;
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.content-panel.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Typography */
.main-title {
    font-size: 3rem !important;
    font-weight: 300 !important;
    color: #ffffff !important;
    margin-bottom: -10px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.subtitle {
    font-size: 1.3rem;
    color: #8b92ff;
    font-weight: 400;
    margin-bottom: 10px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.location {
    color: #aaa !important;
    margin-bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 1.1rem !important;
}

.content-text {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #d0d0d0 !important;
    margin-bottom: 25px !important;
    text-align: center !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.section-title {
    font-size: 2.2rem !important;
    font-weight: 300 !important;
    color: #ffffff !important;
    margin-top: 20px;
    margin-bottom: 30px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.section-content {
    padding-bottom: 30px;
}

/* CV Button */
.cv-button {
    background: linear-gradient(135deg, var(--gradient-start, #667eea) 0%, var(--gradient-end, #764ba2) 100%) !important;
    color: #ffffff !important;
    padding: 15px 35px !important;
    border: none !important;
    border-radius: 30px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 20px !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3) !important;
}

.cv-button:hover {
    background: linear-gradient(135deg, var(--gradient-end, #764ba2) 0%, var(--gradient-start, #667eea) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

/* Timeline Customization */
.timeline-date {
    color: #8b92ff !important;
    font-weight: 600 !important;
    min-width: 80px;
    text-align: right;
}

.rz-timeline-line {
    background-color: rgba(102, 126, 234, 0.3) !important;
}

.rz-timeline-point {
    background-color: #667eea !important;
    border-color: #667eea !important;
}

.rz-timeline-point.rz-point-light {
    background-color: rgba(102, 126, 234, 0.2) !important;
    border-color: rgba(102, 126, 234, 0.4) !important;
}

/* Experience Items */
.experience-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    padding: 25px 30px;
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
}

.experience-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--gradient-start, #667eea), transparent);
    border-radius: 2px;
}

.exp-title {
    color: var(--primary-title-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.exp-org {
    color: var(--secondary-text-color);
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 1rem;
}

.exp-period {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.exp-description {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
}

.skill-item {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.08) 0%, rgba(102, 126, 234, 0.05) 100%);
    border: 1px solid rgba(118, 75, 162, 0.2);
    border-radius: 10px;
    padding: 20px 25px;
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
}

.skill-item:hover {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.12) 0%, rgba(102, 126, 234, 0.08) 100%);
    border-color: rgba(118, 75, 162, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.15);
}

.skill-title {
    color: var(--primary-title-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.skill-description {
    color: var(--secondary-text-color);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 30px;
}

.project-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.project-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.project-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--gradient-start, #667eea), var(--gradient-end, #764ba2), transparent);
    border-radius: 2px;
}

.project-title {
    color: var(--primary-title-color);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.project-type {
    color: var(--secondary-text-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    color: #d0d0d0;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: left; /* Force this change */
}

/* Project Image Carousel */
.project-image-carousel {
    margin-top: 20px;
    margin-bottom: 20px;
}

.main-image-container {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.main-image-container:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.main-project-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
}

.main-project-image:hover {
    transform: scale(1.02);
}

.thumbnail-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    /* ReSharper disable once CssNotResolved */
    scrollbar-width: thin;
    justify-content: center;
    /* ReSharper disable once CssNotResolved */
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 2px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 2px;
}

.thumbnail-strip::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.project-thumbnail {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.project-thumbnail.active {
    border-color: var(--gradient-start, #667eea);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.project-thumbnail:hover {
    border-color: rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.2s ease;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}


/* Contact Section */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d0d0d0;
    margin-bottom: 40px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.contact-link {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #8b92ff;
    text-decoration: underline;
}

.contact-footer {
    text-align: center;
    margin-top: 40px;
}

/* Content Section Scrollbar */
.content-section::-webkit-scrollbar {
    width: 6px;
}

.content-section::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
}

.content-section::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.content-section::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.image-modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.image-modal-close:hover {
    color: #8b92ff;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .card-container {
        height: auto;
        width: 100%;
        padding: 10px;
    }

    .main-card {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .nav-section {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 25px 20px;
        gap: 15px;
    }

    .nav-button {
        flex: 1;
        text-align: center !important;
        padding: 15px 20px !important;
    }

    .gradient-separator {
        height: 6px;
        width: 100%;
    }

    .content-section {
        padding: 40px 25px;
    }

    .main-title {
        font-size: 2.2rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .main-project-image {
        height: 200px;
    }

    .project-thumbnail {
        flex: 0 0 80px;
        height: 80px;
    }

    .sidebar-logo {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
}


/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ====== BLOG LAYOUT STYLES ====== */

/* Business Card to Blog Animation */
.card-container {
    transition: none; /* Only apply transitions when needed */
}

.card-container.blog-mode-transition {
    transition: all 1.0s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center center;
}

.card-container.blog-mode {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
}

.main-card {
    transition: none; /* Only apply transitions when needed */
}

.main-card.blog-mode-transition {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.main-card.blog-mode {
    display: flex;
}

/* Body modifications for full blog mode */
body.blog-full-mode {
    overflow: hidden; /* Prevent scrolling during animation */
}

/* Blog mode layout adjustments */
.card-container.blog-mode .nav-section {
    /* Keep same width as business card mode */
    width: 280px;
    transition: none; /* No transition needed for width */
}

.card-container.blog-mode .content-section {
    /* Content stays to the right of nav, takes remaining space */
    flex: 1;
    overflow-y: auto;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    /* Ensure it doesn't collapse or move */
    min-width: 0; /* Allow flex item to shrink below content size */
    position: relative; /* Maintain positioning context */
}

/* Blog section visual enhancements */
.content-panel#blog {
    position: relative;
}

/* Ensure content-panel scales with blog mode */
.card-container.blog-mode .content-panel.active {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

.content-panel#blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-panel#blog:hover::before {
    opacity: 1;
}

/* Blog Layout Styles */
.blog-layout {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.blog-container {
    max-width: 1200px;
    width: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.03) 32%, rgba(255,255,255,0.03) 34%, transparent 36%),
        linear-gradient(-45deg, transparent 30%, rgba(255,255,255,0.02) 32%, rgba(255,255,255,0.02) 34%, transparent 36%),
        #1a1a1a;
    background-size: 20px 20px;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 40px;
    margin-top: 20px;
}

/* Blog Header */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.blog-title h1 {
    color: var(--primary-title-color);
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.blog-subtitle {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.8;
}

.blog-nav {
    display: flex;
    gap: 20px;
}

.blog-nav a {
    color: var(--secondary-text-color);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.blog-nav a:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
}

/* Blog Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.03) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 10px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-text-color), rgba(118, 75, 162, 0.8));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.1);
}

.post-title {
    color: var(--primary-title-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: rgba(139, 146, 255, 0.7);
}

.post-excerpt {
    color: #d0d0d0;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: rgba(102, 126, 234, 0.2);
    color: var(--secondary-text-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Individual Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.blog-post .post-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.blog-post .post-meta {
    justify-content: center;
    margin-bottom: 20px;
}

.post-content {
    color: #e5e5e5;
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-content h1, .post-content h2, .post-content h3 {
    color: var(--primary-title-color);
    margin: 30px 0 20px 0;
}

.post-content h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    padding-bottom: 10px;
}

.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    text-align: center;
}

.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-text-color);
    color: #ffffff;
    border-color: var(--secondary-text-color);
}

.btn-primary:hover {
    background: rgba(139, 146, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 146, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-text-color);
    border-color: rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #d0d0d0;
}

.no-posts h2 {
    color: var(--primary-title-color);
    margin-bottom: 15px;
}

/* Not Found Page */
.not-found {
    text-align: center;
    padding: 80px 20px;
    color: #d0d0d0;
}

.not-found h1 {
    color: var(--primary-title-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        margin: 10px;
        padding: 20px;
    }
    
    .blog-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-title h1 {
        font-size: 2rem;
    }
    
    .blog-post .post-title {
        font-size: 1.8rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
}

/* Portfolio navigation buttons */
.portfolio-button, .portfolio-button-small {
    background: transparent;
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--secondary-text-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.portfolio-button-small {
    padding: 4px 10px;
    font-size: 0.75rem;
}

.portfolio-button:hover, .portfolio-button-small:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
}

/* Header actions layout */
.header-actions, .blog-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Full post content styling */
.full-post-content {
    /* Remove max-height and overflow to prevent scroll-within-scroll */
    padding-right: 10px;
}

.full-post-content h2 {
    color: var(--primary-title-color);
    font-size: 1.3rem;
    margin: 20px 0 10px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    padding-bottom: 8px;
}

.full-post-content h3 {
    color: var(--primary-title-color);
    font-size: 1.1rem;
    margin: 15px 0 8px 0;
}

.full-post-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    border-left: 3px solid var(--secondary-text-color);
    margin: 15px 0;
    font-size: 0.85rem;
    text-align: left;
}

.full-post-content code:not([class*="language-"]):not(pre[class*="terminal"] code) {
    display: inline-block;
    position: relative;
    background: #1e3a8a;
    color: #bfdbfe;
    padding: 1px 4px;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 
        0 1px 4px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.2s ease;
}

.full-post-content code:not([class*="language-"]):not(pre[class*="terminal"] code):hover {
    padding-right: 24px;
    background: #2563eb;
}

.full-post-content code:not([class*="language-"]):not(pre[class*="terminal"] code)::after {
    content: '📋';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.full-post-content code:not([class*="language-"]):not(pre[class*="terminal"] code):hover::after {
    opacity: 1;
}

/* Copied feedback notification */
.copied-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #059669;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.copied-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.full-post-content blockquote {
    border-left: 3px solid var(--secondary-text-color);
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
    opacity: 0.9;
}

/* ====== DARK CARD CODE BLOCKS ====== */

/* Dark Card Style */
.dark-card-code {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.dark-card-header {
    background: #2d2d2d;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dark-language-tag {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.dark-copy-btn {
    background: #444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.dark-copy-btn:hover {
    background: #555;
}

.dark-card-content {
    padding: 20px;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.dark-card-code .keyword { 
    color: #569cd6; 
}

.dark-card-code .string { 
    color: #ce9178; 
}

/* Apply dark card style to Prism code blocks */
pre[class*="language-"], pre[class*="terminal"] {
    background: #1e1e1e !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #333 !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    position: relative !important;
    display: table !important;
}

/* Universal header bar for all code blocks - clean with separator */
pre[class*="language-"]::before, pre[class*="terminal"]::before { 
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 40px !important;
    background: #2d2d2d !important;
    border-bottom: 1px solid #444 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: white !important;
}

/* Language-specific content for each header */
pre[class*="language-csharp"]::before { content: "C#" !important; }
pre[class*="language-javascript"]::before { content: "JavaScript" !important; }
pre[class*="language-css"]::before { content: "CSS" !important; }
pre[class*="language-html"]::before { content: "HTML" !important; }
pre[class*="language-markup"]::before { content: "HTML/XML" !important; }
pre[class*="language-bash"]::before { content: "Bash" !important; }
pre[class*="language-fish"]::before { content: "Fish Shell" !important; }
pre[class*="language-powershell"]::before { content: "PowerShell" !important; }
pre[class*="language-json"]::before { content: "JSON" !important; }
pre[class*="language-sql"]::before { content: "SQL" !important; }
pre[class*="language-python"]::before { content: "Python" !important; }
pre[class*="language-properties"]::before { content: "Configuration" !important; }
pre[class*="language-yaml"]::before { content: "YAML" !important; }
pre[class*="language-xml"]::before { content: "XML" !important; }
pre[class*="language-log"]::before { content: "Server Response" !important; }
pre[class*="language-terminal"]::before { content: "Terminal" !important; }
pre[class*="language-config"]::before { content: "Configuration" !important; }
pre[class*="terminal"]::before { content: "Terminal" !important; }

/* Copy button appears on hover */
pre[class*="language-"]::after, pre[class*="terminal"]::after {
    content: "Copy" !important;
    position: absolute !important;
    top: 12px !important;
    right: 20px !important;
    background: #444 !important;
    color: white !important;
    border: none !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    z-index: 20 !important;
    transition: background 0.2s, opacity 0.2s !important;
    display: inline-block !important;
    font-weight: 500 !important;
    text-align: center !important;
    min-width: 40px !important;
    line-height: 1 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Show copy button on hover */
pre[class*="language-"]:hover::after, pre[class*="terminal"]:hover::after {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Copy button hover state */
pre[class*="language-"]:hover::after:hover, pre[class*="terminal"]:hover::after:hover {
    background: #555 !important;
}

/* Copy button feedback states */
pre[class*="language-"][data-copied="true"]::after, pre[class*="terminal"][data-copied="true"]::after {
    content: "Copied!" !important;
    background: #28a745 !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

pre[class*="language-"] code, pre[class*="terminal"] code {
    padding: 50px 20px 10px 20px !important;
    background: #1e1e1e !important;
    color: #d4d4d4 !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    display: block !important;
    position: relative;
    z-index: 0;
}

/* Quote Style */
blockquote.quote {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #3b82f6;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: #e2e8f0;
}

blockquote.quote::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 60px;
    color: #3b82f6;
    opacity: 0.7;
    font-family: Georgia, serif;
    line-height: 1;
}

blockquote.quote::after {
    content: "";
    position: absolute;
    bottom: -25px;
    left: 15px;
    font-size: 60px;
    color: #3b82f6;
    opacity: 0.7;
    font-family: Georgia, serif;
    line-height: 1;
}

blockquote.quote .quote-author {
    margin-top: 15px;
    font-style: normal;
    font-size: 14px;
    color: #94a3b8;
    text-align: right;
}

blockquote.quote .quote-author::before {
    content: "— ";
}