* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-blue: #0072CE;
    --brand-green: #00B050;
    --brand-gray: #666666;
    --brand-blue-dark: #005a9e;
    --brand-surface: #f7fafb;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--brand-gray);
    background-color: var(--brand-surface);
}

header {
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    color: white;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    display: block;
    width: 190px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.learning-nav-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.08);
}

.learning-nav {
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 0.65rem 2rem;
}

.learning-nav-label {
    font-weight: 700;
    white-space: nowrap;
}

.learning-nav ul {
    gap: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 45%, var(--brand-green) 100%);
    color: white;
    padding: 4.5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero .hero-intro {
    max-width: 700px;
    margin: -1rem auto 2rem;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--brand-green);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 176, 80, 0.3);
    background-color: var(--brand-blue);
}

.hero-about-link {
    color: white;
    font-weight: 700;
    text-underline-offset: 4px;
}

/* About Section */
.about {
    background-color: white;
    padding: 3rem 2rem;
    margin: 1.25rem auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Skills Section */
.skills {
    padding: 3rem 2rem;
    background-color: white;
    margin: 1.25rem auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--brand-blue);
}

.skill-card:nth-child(2) {
    border-left-color: var(--brand-green);
}

.skill-card:nth-child(3) {
    border-left-color: var(--brand-gray);
}

.skill-card:nth-child(4) {
    border-left-color: var(--brand-blue-dark);
}

.skill-card:nth-child(5) {
    border-left-color: var(--brand-green);
}

.skill-card:nth-child(6) {
    border-left-color: var(--brand-gray);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 114, 206, 0.2);
}

.skill-card h3 {
    color: var(--brand-blue-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Portfolio Section */
.portfolio {
    padding: 3rem 2rem;
    background-color: white;
    margin: 1.25rem auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid var(--brand-blue);
}

.portfolio-item:nth-child(2) {
    border-top-color: var(--brand-green);
}

.portfolio-item:nth-child(3) {
    border-top-color: var(--brand-gray);
}

.portfolio-item:nth-child(4) {
    border-top-color: var(--brand-blue-dark);
}

.portfolio-item:nth-child(5) {
    border-top-color: var(--brand-green);
}

.portfolio-item:nth-child(6) {
    border-top-color: var(--brand-gray);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 114, 206, 0.2);
}

.portfolio-img {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    color: var(--brand-blue-dark);
    margin-bottom: 0.5rem;
}

/* Featured Lab Guide */
.learning-heading {
    margin: 2rem auto 1rem;
    color: var(--brand-blue-dark);
    font-size: 2rem;
}

.lab-guide {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
    gap: 3rem;
    align-items: center;
    padding: 3rem 2rem;
    margin: 1.25rem auto;
    border-radius: 10px;
    color: white;
    background: linear-gradient(120deg, #12304a 0%, var(--brand-blue-dark) 55%, #087f6b 100%);
    box-shadow: 0 12px 28px rgba(0, 71, 105, 0.22);
}

.azure-labs {
    background: linear-gradient(120deg, #12304a 0%, #0072ce 58%, #008f83 100%);
}

.lab-guide-visual {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.lab-guide-diagram {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.lab-guide-diagram span {
    display: block;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    background: rgba(141, 228, 198, 0.22);
}

.lab-guide-diagram span:nth-child(2) {
    transform: translateY(-16px);
}

.lab-guide-label,
.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.lab-guide-content h2 {
    margin: 0.6rem 0 0.8rem;
    color: white;
    font-size: 1.6rem;
    line-height: 1.15;
}

.section-kicker {
    color: #8de4c6;
}

.lab-guide-subtitle {
    max-width: 700px;
    margin-bottom: 1.2rem;
    color: #d5f6ed;
    font-size: 1.15rem;
    font-weight: 600;
}

.lab-guide-content > p:not(.section-kicker):not(.lab-guide-subtitle) {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.88);
}

.lab-guide-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 2rem;
}

.lab-guide-details span {
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #e7fff7;
    font-size: 0.8rem;
}

.view-guide-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.25rem;
    border-radius: 5px;
    background: white;
    color: var(--brand-blue-dark);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.view-guide-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Read-only document view */
.guide-page {
    background: #eef4f5;
}

.guide-document {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem;
}

.guide-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--brand-blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.guide-header,
.guide-section {
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.guide-header {
    border-top: 5px solid var(--brand-blue);
}

.guide-header h1 {
    margin: 0.5rem 0;
    color: var(--brand-blue-dark);
    font-size: 2.5rem;
    line-height: 1.15;
}

.guide-header > p:last-child {
    color: var(--brand-gray);
    font-size: 1.2rem;
    font-weight: 600;
}

.guide-section h2 {
    margin-bottom: 1rem;
    color: var(--brand-blue-dark);
    font-size: 1.7rem;
}

.guide-section h3 {
    margin: 1.5rem 0 0.8rem;
    color: var(--brand-blue-dark);
}

.guide-section p,
.guide-section li {
    line-height: 1.75;
}

.guide-section ol,
.guide-section ul {
    padding-left: 1.5rem;
}

.guide-section li + li {
    margin-top: 0.7rem;
}

.guide-callout {
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
    border-left: 4px solid var(--brand-green);
    background: #eefaf5;
}

.guide-section code {
    padding: 0.1rem 0.3rem;
    background: #edf2f4;
    color: #12304a;
    font-family: Consolas, monospace;
    font-size: 0.92em;
}

.guide-table-wrap {
    overflow-x: auto;
}

.guide-section table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.guide-section th,
.guide-section td {
    padding: 0.8rem;
    border: 1px solid #d9e3e6;
    vertical-align: top;
}

.guide-section th {
    color: white;
    background: var(--brand-blue-dark);
}

.guide-toc ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem 1.5rem;
    padding-left: 1.25rem;
}

.guide-toc a {
    color: var(--brand-blue-dark);
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.guide-code {
    overflow-x: auto;
    padding: 1.25rem;
    margin: 1rem 0;
    background: #102b3b;
    color: #e8f4f6;
    line-height: 1.6;
    tab-size: 4;
}

.guide-code code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 0.9rem;
    white-space: pre;
}

.guide-test-case {
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--brand-blue);
    background: #eef5fb;
}

.guide-test-case p + p {
    margin-top: 0.6rem;
}

@media (max-width: 768px) {
    .guide-document {
        padding: 1rem;
    }

    .guide-header,
    .guide-section {
        padding: 1.5rem;
    }

    .guide-header h1 {
        font-size: 2rem;
    }
}

/* Contact Section */
.contact {
    padding: 3rem 2rem;
    background-color: white;
    margin: 1.25rem auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 114, 206, 0.3);
}

/* Footer */
footer {
    background: var(--brand-gray);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-disclaimer {
    max-width: 900px;
    margin: 0 auto 0.75rem;
    padding: 0 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    line-height: 1.6;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    border-radius: 50%;
    margin: 0 0.5rem;
    line-height: 40px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:nth-child(1) {
    background: var(--brand-blue);
}

.social-links a:nth-child(2) {
    background: var(--brand-blue-dark);
}

.social-links a:nth-child(3) {
    background: var(--brand-green);
}

.social-links a:nth-child(4) {
    background: var(--brand-gray);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .learning-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
        padding: 0.65rem 1rem;
    }

    .learning-nav ul {
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .lab-guide {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lab-guide-content h2 {
        font-size: 1.3rem;
    }
}
