:root {
    --primary-gradient: linear-gradient(135deg, #2563eb, #38bdf8);
    --primary-blue: #2563eb;
    --primary-light: #eff6ff;
    --text-dark: #111827;
    --text-main: #374151;
    --text-muted: #6b7280;
    --border-light: #e5e7eb;
    --cyan: #38bdf8;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-main);
}

a, .btn-link {
    color: #006bb7;
}

h1:focus {
    outline: none;
}

/* Blazor defaults */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Layout */
.main-layout {
    font-family: Arial, sans-serif;
}

.content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1.1rem 20px 40px;
}

/* Navigation */
.top-nav {
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
    position: relative;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-blue);
    white-space: nowrap;
}

.nav-center {
    display: flex;
    gap: 18px;
    align-items: center;
}

    .nav-center a {
        text-decoration: none;
        color: var(--text-main);
        font-size: 14px;
        font-weight: 500;
        padding: 8px 16px;
        border-radius: 999px;
    }

        .nav-center a:hover {
            background-color: #f3f4f6;
        }

        .nav-center a.active {
            background: var(--primary-gradient);
            color: white;
            box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
        }

.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

@media (max-width: 800px) {
    .nav-container {
        justify-content: space-between;
        gap: 0;
    }

    .hamburger {
        display: block;
    }

    .nav-center {
        display: none;
        position: absolute;
        top: 56px;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px;
        border: 1px solid #eee;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        z-index: 1000;
    }

    .nav-toggle:checked ~ .nav-center {
        display: flex;
    }
}

/* Home */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-left h1 {
    font-size: 64px;
    line-height: 1.05;
    margin-bottom: 18px;
}

    .hero-left h1 span {
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.hero-left h2 {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 24px;
}

.hero-left p {
    max-width: 650px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.hero-btn {
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.hero-btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.hero-btn-secondary {
    background: #0f172a;
    color: white;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.28);
}

.hero-right {
    display: flex;
    justify-content: center;
}

.hero-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(white, white) padding-box, var(--primary-gradient) border-box;
    border: 6px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

/* Projects */
.project-controls {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.search-input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.sort-select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.project-card {
    position: relative;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    cursor: pointer;
}

    .project-card:hover {
        background: var(--primary-gradient);
        color: white;
        box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
    }

    .project-card h3 {
        margin-bottom: 12px;
    }

    .project-card p {
        color: #555;
        line-height: 1.5;
    }

    .project-card:hover h3,
    .project-card:hover p,
    .project-card:hover .project-company {
        color: white;
    }

.project-company {
    font-size: 13px;
    color: var(--text-muted);
    margin: 18px 0 10px;
    transition: color 0.2s ease;
}

.project-tags,
.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

    .project-tags span,
    .badge {
        font-size: 12px;
        font-weight: 600;
        padding: 6px 10px;
        border-radius: 999px;
        background: #f3f4f6;
        color: var(--text-main);
        display: inline-block;
    }

.project-card:hover .project-tags span,
.project-card:hover .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.featured-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--primary-gradient);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

.details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: #f9fafb;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .details-button:hover {
        background: white;
        border-color: white;
        color: var(--primary-blue);
        transform: translateY(-1px);
    }

.project-card:hover .details-button {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    border-color: rgba(255, 255, 255, 0.4);
    color: #00324d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Project Details */
.details-container {
    width: 100%;
    margin: 40px auto;
}

.details-company {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.details-description {
    margin: 20px 0;
    line-height: 1.6;
}

.details-badges {
    margin-bottom: 16px;
}

.details-tools span {
    display: inline-block;
    margin: 4px;
    padding: 6px 10px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 12px;
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-blue);
}

    .back-button:hover {
        text-decoration: underline;
    }

/* Resume */
.resume-page {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.65;
    color: var(--text-main);
}

.resume-header {
    text-align: center;
    margin-bottom: 40px;
}

    .resume-header h1 {
        font-size: 42px;
        margin-bottom: 6px;
    }

    .resume-header h2 {
        margin-top: 20px;
        color: var(--primary-blue);
        font-size: 24px;
    }

.resume-section {
    margin-bottom: 36px;
}

    .resume-section h3 {
        font-size: 22px;
        color: var(--primary-blue);
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 8px;
        margin-bottom: 18px;
    }

.resume-job {
    margin-bottom: 28px;
}

    .resume-job h4 {
        font-size: 18px;
        margin-bottom: 4px;
        color: var(--text-dark);
    }

.resume-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.resume-page ul {
    padding-left: 22px;
}

.resume-page li {
    margin-bottom: 6px;
}

/* AI Chat */
.aichat {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 750px 1fr;
    gap: 0;
    align-items: start;
}

.chat-image-panel img {
    width: 100%;
    border-radius: 20px;
}

.chat-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.chat-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.chat-input {
    flex: 1;
    width: 450px;
    padding: 14px 16px;
    border: 2px solid var(--cyan);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

    .chat-input:focus {
        border-color: #00e5ff;
        box-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
    }

.chat-send-button {
    padding: 14px 22px;
    border: 2px solid var(--cyan);
    border-radius: 12px;
    background: linear-gradient(135deg, #0f172a, #0891b2);
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

    .chat-send-button:hover {
        background: linear-gradient(135deg, #0891b2, #22d3ee);
        color: #0f172a;
    }

.chat-frame {
    width: 600px;
    height: 500px;
    max-width: none;
    overflow-y: auto;
    border: 2px solid var(--cyan);
    border-radius: 18px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff, #f0fbff);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}

.chat-container {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    margin-top: 20px;
}

.message-row {
    display: flex;
    margin-bottom: 12px;
}

.user-row {
    justify-content: flex-end;
}

.ai-row {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
}

.user-bubble {
    background-color: #007bff;
    color: white;
}

.ai-bubble {
    background-color: #f1f1f1;
    color: #333;
}

.message-role {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 4px;
}

/* Contact */
.contact-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.contact-header {
    margin-bottom: 50px;
}

    .contact-header h1 {
        font-size: 52px;
        margin-bottom: 20px;
    }

    .contact-header p {
        max-width: 750px;
        line-height: 1.7;
        color: #4b5563;
    }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border-radius: 18px;
    text-decoration: none;
    background: white;
    border: 2px solid rgba(56, 189, 248, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

    .contact-card:hover {
        transform: translateY(-4px);
        border-color: var(--cyan);
        box-shadow: 0 12px 35px rgba(56, 189, 248, 0.18);
        background: linear-gradient(135deg, #f0f9ff, #ecfeff);
    }

.contact-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-card h3 {
    margin-bottom: 6px;
    color: var(--text-dark);
}

.contact-card p {
    color: #4b5563;
    word-break: break-word;
}

/* About */
.about-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 20px;
}

.about-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text h1 {
    font-size: 56px;
    margin-bottom: 24px;
}

.about-intro {
    font-size: 22px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 24px;
}

.about-text p {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 22px;
}

.about-image {
    display: flex;
    justify-content: center;
}

    .about-image img {
        width: 340px;
        height: 340px;
        object-fit: cover;
        border-radius: 50%;
        border: 6px solid transparent;
        background: linear-gradient(white, white) padding-box, var(--primary-gradient) border-box;
        padding: 6px;
        box-shadow: 0 20px 40px rgba(56, 189, 248, 0.18);
    }

@media (max-width: 900px) {
    .about-hero,
    .hero-section {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .about-text h1,
    .hero-left h1 {
        font-size: 42px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer */
.site-footer {
    margin-top: 100px;
    padding: 70px 20px 30px;
    border-top: 1px solid var(--border-light);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 18px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    line-height: 1.8;
    color: #4b5563;
    max-width: 420px;
}

.footer-location {
    margin-top: 18px;
    color: var(--text-muted);
}

.footer-links h4,
.footer-connect h4 {
    margin-bottom: 18px;
    color: var(--text-dark);
}

.footer-links a,
.footer-connect a {
    display: block;
    margin-bottom: 12px;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.2s ease;
}

    .footer-links a:hover,
    .footer-connect a:hover {
        color: var(--cyan);
        transform: translateX(4px);
    }

.footer-bottom {
    max-width: 1300px;
    margin: 50px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}
