* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--primary-color);
    color: var(--primary-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root {
    --primary-color: #f5f7fa;
    --secondary-color: #7996ab;
    --background-color: #e3e3e3;
    --primary-text: #0a0e17;
    --secondary-text: #555;
    --card-background: #fff;
    --card-border: #e5e5e2;
    --card-shadow: rgba(0, 0, 0, 0.03);
    --kpmg-blue: #00338d;
    --kpmg-light-blue: #0091da;
    --kpmg-pale-blue: #83cbeb;
    --sidebar-width: 264px;
}

/* ==============================
   Top Menu / Sidebar
   ============================== */

.top-menu {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
}

.nav-inner {
    width: min(1000px, calc(100% - 40px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    text-decoration: none;
}

.logo-title {
    color: var(--kpmg-blue);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.logo-sub {
    color: var(--kpmg-light-blue);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Styling for the burger button trigger container */
.burger-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    height: 30px;
    width: 35px;
}

/* Base styles to give the burger lines shape and color */
.bar {
    display: block;
    width: 22px;
    height: 3px;
    background-color: var(--primary-text);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* CSS to change look when burger menu is opened */
.burger-btn.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation */

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .nav-links a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 12px;
        border-radius: 8px;
        color: #777;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease;
    }

        .nav-links a:hover {
            background: #eef2f7;
            color: var(--kpmg-blue);
        }

        .nav-links a.active {
            background: var(--kpmg-blue);
            color: #fff;
        }

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-caption {
    display: none;
}


/* ==============================
   Main Content
   ============================== */

.container {
    width: min(880px, calc(100% - 64px));
    margin: 0 auto;
    padding: 64px 0 90px;
}


/* Page Header */

.page-header {
    margin-bottom: 32px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--kpmg-light-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-note {
    margin: 14px 0 0;
    color: var(--secondary-text);
    font-size: 15px;
    line-height: 1.6;
}

/* ==============================
   Dashboard stat tiles
   ============================== */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 0 0 40px;
}

.stat-tile {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px 20px;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 51, 141, 0.05);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 145, 218, 0.12);
    color: var(--kpmg-blue);
    flex-shrink: 0;
}

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

.stat-text {
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.stat-label {
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 600;
    color: #8a8f98;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==============================
   Projects
   ==============================
*/

.projects-heading {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-text);
}

.projects-intro {
    margin: 0 0 26px;
    color: var(--secondary-text);
    font-size: 15px;
    line-height: 1.6;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card {
    position: relative;
    padding: 26px 26px 26px 32px;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(0, 20, 60, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

    .project-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 14px;
        bottom: 14px;
        width: 4px;
        border-radius: 4px;
        background: linear-gradient(180deg, var(--kpmg-blue), var(--kpmg-light-blue));
    }

    .project-card:hover {
        box-shadow: 0 12px 28px rgba(0, 20, 60, 0.10);
        transform: translateY(-2px);
    }

.project-card p {
    color: var(--secondary-text);
    font-size: 15px;
    line-height: 1.6;
}

    .project-card p + p {
        margin-top: 12px;
    }

.project-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.project-name {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 100px;
    height: 34px;
    padding: 0 16px;
    border-radius: 15px;
    background: var(--kpmg-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.project-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--primary-text);
}

/* ==============================
   Daily Cards
   ============================== */

.day-image {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 20px auto 0;
    border-radius: 12px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

    .day-image:hover {
        transform: scale(1.02) translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }


.days {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.week-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.week-heading {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-text);
}

.day-card {
    position: relative;
    padding: 26px 26px 26px 32px;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(0, 20, 60, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

    .day-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 14px;
        bottom: 14px;
        width: 4px;
        border-radius: 4px;
        background: linear-gradient(180deg, var(--kpmg-blue), var(--kpmg-light-blue));
    }

    .day-card:hover {
        box-shadow: 0 12px 28px rgba(0, 20, 60, 0.10);
        transform: translateY(-2px);
    }

.day-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--kpmg-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.day-header time {
    color: #777;
    font-size: 14px;
    font-weight: 600;
}

.day-card p {
    margin: 0;
    color: #444;
    font-size: 16px;
    line-height: 1.7;
}

/* ==============================
   Mobile Responsiveness
   (also the default nav behaviour up to 880px, before the sidebar
   layout takes over)
   ============================== */

/* Desktop view: hide the burger button by default */
.burger-btn {
    display: none;
}

@media (max-width: 880px) {
    /* Always display the burger trigger on mobile/tablet screens */
    .burger-btn {
        display: inline-flex;
    }

    /* Transform the horizontal links into a overlay drop-down menu */
    .nav-links {
        position: fixed;
        top: 64px; /* Matches the header height exactly */
        left: 0;
        width: 100%;
        height: auto;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid #e5e5e2;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 20px;
        /* Smooth transform transitions to hide/show offscreen */
        transform: translateY(-150%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }

        /* JavaScript slides this into place when clicked */
        .nav-links.active {
            transform: translateY(0);
        }

        /* Stretch mobile links out nicely for easier tapping */
        .nav-links a {
            width: 100%;
            padding: 14px 16px;
            border-radius: 8px;
            font-size: 16px;
            text-align: left;
        }

    /* General content spacing adjustments on smaller screens */
    .container {
        width: calc(100% - 32px);
        padding: 40px 0 60px;
    }

    .day-card,
    .project-card {
        padding: 20px 20px 20px 26px;
    }

    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* ==============================
   Desktop sidebar layout (>= 881px)
   ============================== */

@media (min-width: 881px) {
    .top-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--sidebar-width);
        border-bottom: none;
        border-right: 1px solid var(--card-border);
        background: var(--card-background);
        backdrop-filter: none;
        overflow-y: auto;
    }

    .nav-inner {
        width: 100%;
        height: auto;
        min-height: 100%;
        margin: 0;
        padding: 30px 22px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .logo {
        padding-bottom: 26px;
        margin-bottom: 22px;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

        .nav-links a {
            padding: 11px 14px;
            font-size: 14.5px;
        }

    .controls-wrapper {
        margin-top: auto;
        padding-top: 22px;
        border-top: 1px solid var(--card-border);
        justify-content: space-between;
    }

    .sidebar-caption {
        display: block;
        margin: 14px 2px 0;
        color: #9aa1ab;
        font-size: 11px;
        text-align: center;
    }

    body {
        padding-left: var(--sidebar-width);
    }
}
