: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;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, #2a0845 0%, #6441a5 50%, #2a0845 100%);
    color: #f0f4f8;
    padding: 20px;
    box-sizing: border-box;
}

.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;
    position: relative;
}

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

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

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 20px 0;
}

.nav-link {
    display: flex;
    align-items: 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;
}

.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;
}

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 {
    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;
    margin-top: 40px;
}

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

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

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

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

ul>li {
    margin-bottom: 16px;
    padding-left: 2px;
}

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

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;
    text-transform: uppercase;
    letter-spacing: 1px;
}

table tr:nth-child(even) {
    background: rgba(255, 215, 0, 0.05);
}

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

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

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

/* Pre/code block styling */
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;
}

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

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

/* Test groups section */
.test-groups {
    margin: 3rem 0;
    width: 100%;
}

.group-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.group-card {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.group-card.smoke {
    border-left-color: #ff6b35;
}

.group-card.regression {
    border-left-color: #4ecdc4;
}

.group-card.negative {
    border-left-color: #ff6b6b;
}

.group-card h3 {
    margin: 0 0 0.5rem 0;
    color: #ffd700;
    font-size: 1.3em;
}

.group-card p {
    margin: 0 0 1rem 0;
    color: #e8e8e8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-snippet {
    margin-top: 10px;
    padding: 8px 12px;
    background: #2c3e50;
    color: #ecf0f1;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border-left: 3px solid #4fc3f7;
}

/* GitHub corner */
.github-corner {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 100;
}

.github-corner img {
    width: 38px;
    height: 38px;
    transition: transform 0.3s ease;
}

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

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

footer a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffd700;
}

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

/* Animations */
@keyframes fadeIn {
    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);
}

/* Responsive design */
@media (max-width: 768px) {
    .main-container {
        padding: 25px;
        margin: 0 10px;
    }

    body {
        padding: 15px;
    }

    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

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

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

    .quick-links {
        grid-template-columns: 1fr;
    }
}

@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;
    }
}

/* 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;
}