:root {
    --primary: #ffd700;
    --secondary: #4fc3f7;
    --bg-dark: #181c24;
    --bg-darker: #12151c;
    --text-light: #f0f4f8;
    --text-dim: #e8e8e8;
}

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

html,
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-size: 16px;
    font-weight: 400;
    min-width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 50%, #2d3748 100%);
    color: #f0f4f8;
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
}

.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.8s ease-out;
}

/* Header Styling */
header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

h1 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 18px;
    font-size: 2.8em;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.18);
    letter-spacing: 1.5px;
}

/* Footer Styling */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    width: 100%;
}

.linkedin-link {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.linkedin-link:hover {
    color: #ffd700;
}

.copilot-credit {
    color: #7f8c8d;
    font-size: 0.9em;
}

.copilot-highlight {
    color: #ffd700;
    font-weight: 600;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.2em;
    margin-top: 15px;
}

.quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 18px 24px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.nav-link i {
    margin-right: 12px;
    font-size: 1.2em;
}

/* Content Grid Styling */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.04);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.card h2 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.card h2 i {
    color: #ffd700;
}

.card ul,
.card ol {
    margin-left: 20px;
    color: #e8e8e8;
}

.card li {
    margin-bottom: 10px;
    color: #e8e8e8;
}

.card li strong {
    color: #4fc3f7;
}

.card code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #ffeb3b;
    border: 1px solid rgba(255, 235, 59, 0.2);
    font-size: 0.9em;
}

.container {
    width: 280px;
    text-align: center;
}

a {
    color: #ffd700;
    display: block;
    text-decoration: none;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: 500;
    margin: 10px 0;
    border-radius: 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

a:hover,
a:active {
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
}

dl {
    line-height: 1.8;
}

dt {
    margin-top: 25px;
    margin-bottom: 12px;
    color: #ffd700;
    font-size: 1.15em;
    font-weight: 600;
    padding-left: 10px;
    border-left: 4px solid #ffd700;
    background: rgba(255, 215, 0, 0.05);
    padding: 12px 15px;
    border-radius: 5px;
}

dd {
    margin-left: 0px;
    margin-bottom: 20px;
    text-align: justify;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid rgba(79, 195, 247, 0.3);
}

code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #ffeb3b;
    border: 1px solid rgba(255, 235, 59, 0.2);
}

ul {
    margin-top: 15px;
    margin-left: 0px;
    padding-left: 20px;
}

li {
    margin-bottom: 12px;
    padding: 8px 0;
    color: #e8e8e8;
}

li strong {
    color: #4fc3f7;
    font-weight: 600;
}

@media (max-width: 768px) {
    .qa-container {
        padding: 25px;
        margin: 0 10px;
    }

    .links-container {
        padding: 20px;
        margin: 0 10px;
    }

    body {
        padding: 15px;
    }

    h2 {
        font-size: 1.8em;
    }

    dt {
        font-size: 1.1em;
    }

    dd {
        padding: 12px 15px;
    }
}

/* Enhanced visual effects */
.main-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(100, 65, 165, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 8, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Smooth scrolling and animations */
html {
    scroll-behavior: smooth;
}

.qa-container {
    animation: fadeInUp 0.8s ease-out;
}

.links-container {
    animation: fadeInDown 0.6s ease-out;
}

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

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

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

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

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Improved link icons */
.fa-solid {
    margin-right: 10px;
    color: #ffd700;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

/* Table styling for tech stack */
table {
    width: 100%;
    max-width: 800px;
    margin: 25px 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #1a1f2e;
    /* Darker background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

table th,
table td {
    padding: 16px 24px;
    text-align: left;
    color: #ffffff;
    /* Bright white text */
}

table th {
    background: #2c3756;
    /* Darker blue header */
    color: #ffd700;
    /* Golden header text */
    font-weight: 600;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

table tr:nth-child(even) {
    background: rgba(255, 215, 0, 0.05);
    /* Subtle gold tint */
}

table tr:hover {
    background: rgba(255, 215, 0, 0.1);
    /* Golden hover effect */
}

table th,
table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.13);
    text-align: left;
}

table th {
    background: rgba(255, 215, 0, 0.13);
    color: #ffd700;
    font-size: 1.1em;
    font-weight: 600;
}

table tr:last-child td {
    border-bottom: none;
}

table td {
    color: #e8e8e8;
    font-size: 1em;
}

/* Responsive table */
@media (max-width: 600px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    table th {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    table td {
        border: none;
        padding: 10px 8px;
    }
}

/* Pre/code block styling for project structure */
pre,
code {
    font-family: 'Fira Mono', 'Consolas', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
}

pre {
    width: 100%;
    background: var(--bg-darker);
    color: var(--text-light);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    overflow-x: auto;
    font-size: 0.95em;
    box-shadow: 0 2px 12px 0 rgba(255, 215, 0, 0.08);
    border: 1.5px solid rgba(255, 215, 0, 0.13);
    max-width: 98vw;
    min-width: 0;
    /* Allow horizontal scroll for long lines */
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 1em;
    white-space: pre;
    /* Prevent code from wrapping */
}

/* Nested list spacing for class/utilities section */
ul ul {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 22px;
}

/* Heading spacing improvements */
h1 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 18px;
    font-size: 2.8em;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.18);
    letter-spacing: 1.5px;
}

h2 {
    margin-top: 40px;
}

/* List item tweaks for better readability */
ul>li {
    margin-bottom: 16px;
    padding-left: 2px;
}

ol>li {
    margin-bottom: 14px;
    padding-left: 2px;
}

/* Remove conflicting footer styling */
footer {
    margin-top: 40px;
    color: #ffd700;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

footer a {
    color: #4fc3f7;
    text-decoration: underline;
    font-weight: 600;
}

footer a:hover {
    color: #ffd700;
    background: none;
}

/* GitHub Corner */
.github-corner {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 100;
    transition: transform 0.3s ease;
}

.github-corner:hover {
    transform: scale(1.1);
}

.github-corner img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 20px;
    }

    .quick-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        width: 100%;
        max-width: 250px;
    }

    body {
        padding: 15px;
    }

    h1 {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .main-container {
        padding: 25px;
        margin: 0 10px;
    }

    .github-corner {
        top: 10px;
        right: 10px;
    }

    .github-corner img {
        width: 32px;
        height: 32px;
    }
}

/* Azure DevOps images grid layout */
.ado-images-container {
    margin: 32px 0 0 0;
}

.ado-images-container h2 {
    margin-bottom: 8px;
}

.ado-images-container p {
    margin-bottom: 18px;
}

.ado-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    justify-items: center;
}

.ado-images-grid figure {
    max-width: 480px;
    text-align: center;
    margin: 0;
    cursor: pointer;
}

.ado-img {
    width: 440px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 16px #e3f2fd;
    transition: box-shadow 0.2s, transform 0.2s;
}

.ado-img:hover {
    box-shadow: 0 4px 32px #90caf9;
    transform: scale(1.03);
}

/* Modal styles */
.ado-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.ado-modal.active {
    display: flex;
}

.ado-modal-content {
    background: #2a3441;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 48px rgba(79, 195, 247, 0.4);
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid rgba(79, 195, 247, 0.3);
    position: relative;
}

.ado-modal-image-container {
    max-width: 90vw;
    max-height: 85vh;
    overflow: auto;
    border-radius: 12px;
    background: #1a1a1a;
    padding: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.ado-modal-content img {
    width: auto;
    height: auto;
    min-width: 100%;
    border-radius: 8px;
    display: block;
    cursor: zoom-in;
}

.ado-modal-close {
    margin-top: 12px;
    background: #4fc3f7;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 1em;
    cursor: pointer;
}