:root {
    --bg-color: #E9F1F4;
    /* Light blue */
    --text-color: #2C3E50;
    /* Dark blue */
    --accent-color: #FE9C91;
    /* Salmon pink */
    --dark-bg: #2C3E50;
    /* Dark blue */
    --white: #F5F5F5;
    --font-family: 'Bricolage Grotesque', sans-serif;
    --spacing-unit: 1rem;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo a {
    text-decoration: none;
    color: var(--text-color);
}

.logo-emoji {
    font-size: 4rem;
    line-height: 1;
}

.profile-pic img {
    object-fit: cover;
    margin-left: -1rem;
}

/* Hero */
.hero {
    padding: 3rem 0 4rem;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 100;
    line-height: 1.2;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5.25rem;
}

.hero .container {
    display: flex;
    flex-direction: column;
}

.hero p.hero-subtitle {
    margin-bottom: 0.5rem;
}

.hero .btn-primary {
    align-self: flex-end;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #2C3E50;
    /* Darker text for contrast on salmon */
    border: none;
    font-weight: 300;
    font-size: 1.5rem;
}

/* Work Section */
.work {
    background-color: var(--dark-bg);
    padding: 1.5rem 0;
    color: var(--white);
    overflow: hidden;
    /* For carousel */
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2.6rem;
    font-weight: 100;
}

.text-white {
    color: var(--white);
}

/* Work section inside articles */

.work.case {
    background-color: hsl(210, 29, 24 / 0.2);
    color: var(--text-color);
    margin-top: 2rem;
}
.work.case .section-title {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    padding-bottom: 1rem;
    /* Space for scrollbar if visible, or just breathing room */
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
    /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.carousel-card {
    width: 80vw;
    max-width: 400px;
    margin-right: 1.5rem;
    background: transparent;
    flex-shrink: 0;
    font-size: 1.375rem;
    line-height: 1.1;
    scroll-snap-align: start;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-image {
    border-radius: 0.5rem 0.5rem 0 0;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--bg-color);
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-image#fast_UX {
    background-image: url('images/project_fast_thumb.png');
}

.card-image#mapping {
    background-image: url('images/project_mapping_thumb.png');
}

.card-image#stakeholder {
    background-image: url('images/project_reboot_thumb.png');
}

.card-keywords {
    color: var(--dark-bg);
    font-weight: 100;
    padding: 1rem;
    font-size: 1rem;
}

.card-title {
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-size: 1.375rem;
}

.card-desc {
    margin-bottom: 1rem;
    font-weight: 100;
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    font-size: 1.125rem;
    border-radius: 2rem;
}

/* Services Section */
.services {
    padding: 1.6rem 0;
}

.services .section-title {
    margin-bottom: 2rem;
}

.service-item {
    margin-bottom: 2.5rem;
}

.service-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.service-desc {
    font-size: 1.375rem;
    color: #455A64;
    font-weight: 100;
    line-height: 1.1;
}

/* Trusted By */
.trusted-by {
    padding-bottom: 4rem;
    color: #546E7A;
}

.trusted-label {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.logos {
    display: flex;
    gap: 2rem;
    align-items: center;
    opacity: 0.6;
}

/* Article pages */
h4.keywords {
    font-size: 1.2rem;
    font-weight: 100;
    margin-bottom: 1rem;
}
h1 {
    line-height: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.5rem;
    font-weight: 100;
    margin-bottom: 0.5rem;
}

p.hero-subtitle {
    margin-bottom: 2.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

ol, ul {
    margin-top: 0rem;
    margin-bottom: 1.5rem;
}
ol li, ul li {
    margin-left: 1rem;
}

figure img {
    max-width: 100%;
    height: auto;
}

figcaption {
    font-style: italic;
	font-weight: 400;
    margin-top: 0.5em;
    margin-bottom: 1.5rem;
}

figcaption span {
    font-weight: 200;
}

aside {
	background-color: hsla(49, 44%, 55%, 0.2);
	font-style: italic;
	padding: 0.8em;
	margin: 2em -0.8em;
	border-radius: 0.5em;
}

aside p {
	display: inline;
}

aside h3 {
    font-size: 1rem;
	display: inline;
}

/* 1. Gallery Container */

.image-gallery-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* 2. Individual Gallery Item */
.gallery-item {
    flex: 1 1 50%; /* Allows each figure to grow/shrink and take up half the space */
    margin: 0;     /* Remove default margin from figure */
    padding: 0;
    text-align: center;
}

/* 3. Image Styling */
.gallery-item img {
    display: block; /* Removes any extra space below the image */
    width: 100%;
    height: auto;
    border: 1px solid #e1e1e1;
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
}

/* Footer */
footer.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: var(--dark-bg);
    color: var(--white);
    margin-top: 3rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive / Tablet */
@media (min-width: 600px) {
    .container {
        max-width: 670px;
    }
}   
    .carousel-card {
        width: 286px;
        /* Fixed width on tablet */
    }

/* Responsive / Desktop */
@media (min-width: 768px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .carousel-card {
        width: 286px;
        /* Fixed width on desktop */
    }

    .services .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .services .section-title {
        grid-column: 1 / -1;
    }
}