@charset "UTF-8";
/* CSS Document */
:root {
    --primary-dark: #303030;
    --primary-light: #fefefe;
    --accent-yellow: #f0edad;
    --accent-green: #d2decc;
    --accent-blue: #375a8e;
    --alt-background: #d9dfe8;
    --text-grey: #555;
    --text-light-grey: #666;
    --text-detail: #444;
    --text-dark-red: #a03135;
    --text-dark-green: #475f3f;
    --border-grey: #ccc;
    --white: #ffffff;
    --light-grey: #f2f2f2;
    --medium-grey: #ededed;
    --hover-yellow: #fdf9af;
    --active-yellow: #e8e085;
    --box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --box-shadow-hover: 0 4px 10px rgba(0,0,0,0.2);
    --border-radius-sm: 16px;
    --border-radius-md: 30px;
    --border-radius-lg: 50px;
    --border-radius-xl: 80px;
    --spacing-0: 0;
    --spacing-xxxs: 0.25rem;
    --spacing-xxs: 0.5rem;
    --spacing-xs: 0.75rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    --spacing-xxxl: 4rem;
}

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

*:focus-visible {
    outline: 2px solid #1e6baa;
    outline-offset: 2px;
}
/*  –––– Mobile first –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    font-family: 'Inter', 'Segoe UI', 'OpenSans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1.12%;
    line-height: 150%;
    color: var(--primary-dark);
    background-color: var(--primary-light);
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(254, 254, 254, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    margin: 0 auto;
    padding: .6rem;
}

section {
    padding: 2rem 1.25rem;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'OpenSans', sans-serif;
    font-weight: 400;
    line-height: 150%;
}

h1 {
	font-size: 2.5rem;
    margin-top: var(--spacing-lg);
}

h2 {
	font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

h3 {
	font-size: 1.25rem;
    font-weight: 500;
    margin: 2rem 0 0.5rem 0;
}

h4 {
	font-size: 1.1rem;
    font-weight: 500;
	margin: 2rem 0 0.75rem 0;
}

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 700;
}

blockquote {
    border-left: 4px solid var(--accent-yellow);
    line-height: 150%;
    padding: 1.5rem;
    margin: 2rem 0;
}

.blockquote--blue {
    border-left: 4px solid var(--accent-blue);
}

ul {
    list-style: disc;
    margin: 0 0 1.5rem 2rem;
}

ol {
    margin: 0 0 1.5rem 2rem;
}

li {
    margin-bottom: 0.5rem;
}

figcaption {
    font-size: 0.875rem;
    color: var(--text-detail);
    padding: var(--spacing-xxxs) var(--spacing-md) var(--spacing-sm) var(--spacing-md);
}

.p-detail {
    font-size: 0.9rem;
    color: var(--text-detail);
}

/* Button Component - BEM Methodology */
.button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: inherit;
}

.button--primary,
.button--primary:link,
.button--primary:visited {
    background: #e9e5a1;
    color: var(--primary-dark);
}

.button--primary:hover {
    background: var(--hover-yellow);
    color: #000;
    text-decoration: underline 1px solid var(--primary-dark);
}

.button--primary:active {
    background: var(--active-yellow);
    color: #000;
    text-decoration: underline 1px solid var(--primary-dark);
}

.button--secondary,
.button--secondary:link,
.button--secondary:visited {
    background: var(--text-light-grey);
    color: var(--primary-light);
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

.button--secondary:hover {
    background: var(--hover-yellow);
    color: #000;
    text-decoration: underline 1px solid var(--primary-dark);
}

.button--secondary:active {
    background: var(--active-yellow);
    color: #000;
    text-decoration: underline 1px solid var(--primary-dark);
}


/* Legacy button classes for backward compatibility */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: inherit;
}

/* Skip navigation links for accessibility */
.skip-nav {
    position: absolute;
    left: -10000px;
    top: 40px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-nav:focus {
    position: absolute;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    background: var(--primary-dark);
    color: var(--medium-grey);
    padding: 10px 15px;
    margin: 4px;
    border-radius: 65px;
    text-decoration: none;
    font-weight: 400;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Back button SVG styling */
.btn--with-icon,
.mobile-back-link--with-icon,
.back-to-home-link--with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn--with-icon svg,
.mobile-back-link--with-icon svg,
.back-to-home-link--with-icon svg {
    width: 1.25em;
    height: 1.25em;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.btn--primary,
.btn--primary:link,
.btn--primary:visited {
    background: #e9e5a1;
    color: var(--primary-dark);
    align-self: flex-start;
}

.btn--primary:hover {
    background: var(--hover-yellow);
    color: #000;
    text-decoration: underline 1px solid var(--primary-dark);
}

.btn--primary:active {
    background: var(--active-yellow);
    color: #000;
    text-decoration: underline 1px solid var(--primary-dark);
}

.btn--secondary,
.btn--secondary:link,
.btn--secondary:visited {
    background: var(--text-light-grey);
    color: var(--primary-light);
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

.btn--secondary:hover {
    background: var(--hover-yellow);
    color: #000;
    text-decoration: underline 1px solid var(--primary-dark);
}

.btn--secondary:active {
    background: var(--active-yellow);
    color: #000;
    text-decoration: underline 1px solid var(--primary-dark);
}


.btn--mobile {
    background: var(--primary-dark);
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-light);
    padding: var(--spacing-xs) var(--spacing-sm);
}

a:link {
  color: #375a8e;
}

/* visited link */
a:visited {
  color: #2d35a2;
}

/* mouse over link */
a:hover {
  color: #436ca9;
}

/* selected link */
a:active {
  color: #22477d;
}

/* Link styles for dark backgrounds */
.dark-bg-link,
.dark-bg-link:link,
.dark-bg-link:visited {
    color: var(--accent-yellow);
    text-decoration: underline 1px solid var(--accent-yellow);
    transition: all 0.3s ease;
}

.dark-bg-link:hover {
    color: #fdf9af;
    text-decoration: underline 2px solid #fdf9af;
    text-underline-offset: 3px;
}

.dark-bg-link:active {
    color: #e8e085;
    text-decoration: underline 2px solid #e8e085;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    height: 100%;
}

.nav-links {
    display: none;
}



.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    font-family: 'Poppins', 'OpenSans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    background: var(--white);
    box-shadow: var(--box-shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.open {
    max-height: 520px;
}

.mobile-menu a {
    display: block;
    padding: var(--spacing-sm);
    text-decoration: none;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--light-grey);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: var(--accent-yellow);
    color: var(--primary-dark);
}

.mobile-menu a.active {
    background: var(--light-grey);
    font-weight: 600;
}

.mobile-menu a.mobile-back-link {
    color: var(--text-light-grey) !important;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-grey);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-grey);
    /* margin: var(--spacing-xs) 0; */
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxs);
    font-family: 'Poppins', 'OpenSans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.logo:link,
.logo:visited,
.logo:hover,
.logo:active {
    color: var(--primary-dark);
    text-decoration: none;
}

.logo:hover {
    text-decoration: underline;
}

.logo:visited {
    color: var(--primary-dark);
}

.logo-text {
    color: inherit;
    display: none;
}

.logo-icon {
    background: url(../images/logo-icon.svg) no-repeat 0 0;
    display: inline-block;
    position: relative;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    margin: 0 0.2rem 0 0;
    width: 41px;
    height: 44px;
    background-size: 100%;
    background-position: 0px 0px;
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 5rem var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);
    margin: 0 auto;
}

.hero p {
    font-family: 'Poppins', 'OpenSans', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 150%;
    margin: var(--spacing-xl) 0rem var(--spacing-lg) 0rem;
}

/* Home page */
.hero-name {
    font-family: 'Poppins', 'OpenSans', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
}

.hero-portfolio-title {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -0.15rem;
    font-kerning: normal;
    display: block;
}

/* Fade-in animation */
.fade-in-one {
  animation: fadeIn 1000ms;
  -webkit-animation: fadeIn 1000ms;
  -moz-animation: fadeIn 1000ms;
  -o-animation: fadeIn 1000ms;
  -ms-animation: fadeIn 1000ms;
}

.fade-in-two {
  animation: fadeIn 1000ms 400ms both;
  -webkit-animation: fadeIn 1000ms 400ms both;
  -moz-animation: fadeIn 1000ms 400ms both;
  -o-animation: fadeIn 1000ms 400ms both;
  -ms-animation: fadeIn 1000ms 400ms both;
}

.fade-in-three {
  animation: fadeIn 1000ms 800ms both;
  -webkit-animation: fadeIn 1000ms 800ms both;
  -moz-animation: fadeIn 1000ms 800ms both;
  -o-animation: fadeIn 1000ms 800ms both;
  -ms-animation: fadeIn 1000ms 800ms both;
}

.fade-in-four {
  animation: fadeIn 1000ms 1.2s both;
  -webkit-animation: fadeIn 1000ms 1.2s both;
  -moz-animation: fadeIn 1000ms 1.2s both;
  -o-animation: fadeIn 1000ms 1.2s both;
  -ms-animation: fadeIn 1000ms 1.2s both;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-moz-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-webkit-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-o-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-ms-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Responsive Grid Layout System - BEM Methodology */
.grid {
    display: grid;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

/* Basic grid columns */
.grid--cols-1 { 
    grid-template-columns: 1fr;
}
.grid--cols-2 { 
    grid-template-columns: 1fr;
}
.grid--cols-3 { 
    grid-template-columns: 1fr;
}
.grid--cols-4 { 
    grid-template-columns: 1fr;
}

/* Responsive auto-fit grids */
.grid--auto { 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Gap modifiers */
.grid--gap-xs { gap: var(--spacing-xs); }
.grid--gap-sm { gap: var(--spacing-sm); }
.grid--gap-lg { gap: var(--spacing-lg); }
.grid--gap-xl { gap: var(--spacing-xl); }

/* Height modifier */
.grid--full-height { height: 100%; }



/* Legacy grid classes - DEPRECATED - All functionality moved to .grid system */

/* Card Component - BEM Methodology */

.card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
    align-items: stretch;
}

.card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.card__title {
    font-weight: 500;
    margin: 0 0 var(--spacing-xs) 0;
}

.card__content {
    flex: 1;
}

.card__footer {
    margin-top: var(--spacing-sm);
}

/* Card Modifier System - Background Variants */
.card--light {
    background: var(--white);
    color: var(--primary-dark);
}

.card--dark {
    background: var(--primary-dark);
    color: var(--primary-light);
}

.card--accent {
    background: var(--alt-background);
    color: var(--primary-dark);
}

.card--neutral {
    background: var(--light-grey);
    color: var(--primary-dark);
}

.card--warning {
    background: #ffcdcd;
    color: var(--primary-dark);
}

/* Card Modifier System - Layout Variants */
.card--center {
    text-align: center;
}

.card--flex {
    display: flex;
    flex-direction: column;
}

.card--shadow {
    box-shadow: var(--box-shadow);
}

.card--border-accent {
    border-top: 4px solid var(--accent-blue);
}

/* Card Modifier System - Outer Cards (Main container cards) */
.card--outer {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius-md);
}

/* Remove card margins when inside grids - let grid gap handle spacing */
.grid .card--outer,
.grid .card--inner {
    margin-bottom: 0;
    margin-top: 0;
}

.card--outer h3:first-child, .card--outer h4:first-child {
    margin-top: var(--spacing-0);
}

.card--outer p:last-child {
    margin-bottom: var(--spacing-0);
}

/* Card Modifier System - Inner Cards (Cards that sit inside outer cards) */
.card--inner {
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
}

.card--no-padding {
    padding: 0;
}

/* Card Modifier System - Dark Background Content Styling */
.card--dark h3,
.card--dark h4 {
    color: var(--accent-yellow);
}

.card--dark .card__content,
.card--dark p {
    color: var(--primary-light);
}

.card--light h3,
.card--light h4 {
    color: var(--primary-dark);
}

.card--light .card__content,
.card--light p {
    color: var(--primary-dark);
}

/* Card variants */
.card--work {
    background: var(--accent-yellow);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 0;
}

.card--work:hover {
    box-shadow: var(--box-shadow-hover);
    /* transform: translateY(-2px); */
}

/* Remove text underlines from work card links */
.card--work a,
.card--work a:link,
.card--work a:visited,
.card--work a:hover,
.card--work a:active {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Legacy card classes - DEPRECATED - Use new modifier system instead */

/* .challenge-text:first-of-type h3 {
    margin-top: 0;
} */

.card--project {
    background: #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Legacy card classes - DEPRECATED - Use new modifier system instead */

.card--cta {
    background: var(--primary-dark);
    color: var(--light-grey);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: left;
    padding: 0;
}


/* Work Portfolio Section */
.work-grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: 1fr;
}


/* Tag Component */
.tag {
    color: #e2e8f0;
    padding: 0.25rem 0.75rem;
    border: var(--light-grey) 1px solid;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    display: inline-block;
}

/* Legacy work styles for backward compatibility */
.work-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    display: block;
}
.arrow-icon {
    width: 32px;
    height: 32px;
    color: white;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}
.work-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    background: var(--primary-dark);
    color: var(--white);
    min-height: 0;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.card-title {
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.work-description {
    font-size: 0.875rem;
    color: var(--light-grey);
    margin-bottom: var(--spacing-sm);
}
.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xxs);
    list-style: none;
    margin: 0;
    padding: 0;
}


.content {
    max-width: 1200px;
    margin: 0 auto;
}

/* About Section */
#about {
    background: var(--white);
}


/* Praise Section */

.testimonial.full-width {
    grid-column: 1 / -1;
}

.testimonial {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--border-radius-lg);
}

.testimonial p:last-child  {
    margin-bottom: 0;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-info h3 {
    margin-bottom: 0;
    margin-top: 0;
}

.testimonial-info p {
    font-size: 0.9rem;
    color: var(--text-light-grey);
    margin-bottom: 0;
}

.testimonial-text {
    font-size: 1rem;
}


/* my cta */
.cta-section {
    background-color: var(--accent-yellow);
}

.cta-card {
    background: var(--primary-dark);
    color: var(--light-grey);
    border-radius: var(--border-radius-lg);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    text-align: center;
}

.cta-content {
    flex: 1;
    z-index: 2;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.cta-content p {
    margin-bottom: var(--spacing-lg);
}

.cta-text {
    font-family: 'Poppins', 'OpenSans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 150%;
    margin: 0 0 var(--spacing-lg) 0;
}

.cta-text--small {
    font-size: 1rem;
    margin: var(--spacing-0);
    /* padding: var(--spacing-xs) 0; */
}

.cta-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    display: flex;
    order: -1;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    flex: 1;
}

.feather-check-circle, .feather-alert-triangle {
    color: var(--text-dark-green);
    vertical-align: text-bottom;
    margin-right: var(--spacing-xxxs);
}

.feather-alert-triangle {
    color: var(--text-dark-red);
}

/* Utility Classes */

/* Spacing - Padding */
.p-0 { padding: var(--spacing-0); }
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.p-xxl { padding: var(--spacing-xxl); }

/* Padding directional */
.pt-0 { padding-top: var(--spacing-0); }

.pb-0 { padding-bottom: var(--spacing-0); }
.pb-xs { padding-bottom: var(--spacing-xs); }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }
.pb-xxl { padding-bottom: var(--spacing-xxl); }

/* Spacing - Margin */
.m-0 { margin: var(--spacing-0); }
.m-xs { margin: var(--spacing-xs); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }
.m-xxl { margin: var(--spacing-xxl); }

/* Margin directional */
.mb-0 { margin-bottom: var(--spacing-0); }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-xxl { margin-bottom: var(--spacing-xxl); }

.mt-0 { margin-top: var(--spacing-0); }
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-xxl { margin-top: var(--spacing-xxl); }

/* Display utilities */
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

/* Flexbox utilities */
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

/* Text utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-dark); }
.text-light { color: var(--primary-light); }
.text-accent { color: var(--accent-yellow); }
.text-muted { color: var(--text-light-grey); }
.text-success { color: var(--text-dark-green) !important; }
.text-warning { color: var(--text-dark-red) !important; }

/* Background utilities */
.bg-alt { background: var(--alt-background); }
.bg-pl { background: var(--primary-light); }
.bg-wh { background: var(--white); }
.bg-lg { background: var(--light-grey); }
.bg-mg { background: var(--medium-grey) }
.bg-accent { background: var(--accent-yellow) }
.bg-success { background: var(--accent-green); }  

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-full { max-width: 100%; }

/* Grid utilities */
.full-width { grid-column: 1 / -1; }

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--accent-yellow);
    padding: var(--spacing-sm);
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
}

/* –––– Tablet Styles (768px+) –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (min-width: 768px) {

    section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    header {
        padding: var(--spacing-sm);
    }

    h1 {
        font-size: 3rem;
        margin-top: var(--spacing-lg);
    }

    /* Hide mobile navigation */
    .btn--mobile {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .name,
    .logo-text { 
        display: none;
    }

    .hero-name {
        font-size: 1.25rem;
    }


    /* Responsive grid improvements */
    .grid--cols-1 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid--cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    nav {
        max-width: 1200px;
    }

    .nav-links {
        font-family: 'Poppins', 'OpenSans', sans-serif;
        border-radius: 20px;
        display: flex;
        gap: var(--spacing-0);
        height: 100%;
        align-items: center;
        position: relative;
    }

    .nav-links .nav-link {
        color: var(--primary-dark);
        text-decoration: none;
        border-radius: 65px;
        display: flex;
        text-underline-offset: 3px;
        align-items: center;
        justify-content: center;
        padding: 10px 15px;
        position: relative;
        z-index: 1;
        transition: color 0.5s ease;
    }

    .nav-links .nav-link:hover {
        text-decoration: underline 1px solid var(--primary-dark);
    }

    .nav-links .active-nav-link {
        display: flex;
        align-items: center;
        background: var(--primary-dark);
        color: var(--medium-grey);
        z-index: 1;
    }

    .nav-links .active-nav-link:hover {
        background: var(--primary-dark);
        color: var(--accent-yellow);
        text-decoration: underline 1px solid var(--accent-yellow);
        z-index: 1;
    }

    .sliding-active-pill {
        position: absolute;
        display: flex;
        align-items: center;
        height: 100%;
        background-color: var(--primary-dark);
        border-radius: 65px;
        transition: left 0.3s ease, width 0.3s ease;
        z-index: 0;
    }

    .sliding-hover-pill {
        position: absolute;
        display: flex;
        align-items: center;
        height: 100%;
        background-color: var(--accent-yellow);
        border-radius: 65px;
        transition: left 0.3s ease, width 0.3s ease, opacity 0.3s ease;
        z-index: 0;
        opacity: 0;
        pointer-events: none;
    }

    .hero {
        padding: 5rem 1.5rem;
    }

    /* Work section responsive layout */
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-content {
        padding: var(--spacing-lg) var(--spacing-xl);
    }

    /* Testimonials responsive layout */
    .testimonials.grid--cols-1 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Enhanced responsive grids for tablet */
    .grid--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid--cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .card.card--info {
        padding: var(--spacing-lg) var(--spacing-xl);
    }

    .card {
        border-radius: var(--border-radius-lg);
    }

    /* Tablet Card Responsive Styles */
    .card--outer {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
        border-radius: var(--border-radius-lg);
    }

    .card--inner {
        padding: var(--spacing-md);
        border-radius: var(--border-radius-md);
    }

    /* Remove card margins when inside grids - tablet */
    .grid .card--outer,
    .grid .card--inner {
        margin-bottom: 0;
        margin-top: 0;
    }

    .stats-grid.grid--cols-1 {
        grid-template-columns: repeat(3, 1fr);
    }

    .work-image {
        height: 300px;
    }

    .card--work:hover {
        box-shadow: var(--box-shadow-hover);
    }

    /* Ensure no text decoration on hover for tablet/desktop */
    .card--work a:hover {
        text-decoration: none;
    }

    .card--work:hover .work-image {
        filter: brightness(1.2);
        transition: all 0.3s ease-in-out;
    }

    .card--work:hover .arrow-icon {
        transform: translateX(20px);
    }

    /* CTA card responsive styles - tablet */
    .card--cta {
        flex-direction: row;
        border-radius: 80px;
        text-align: left;
    }


    .cta-footer h2 {
        font-size: 2.2rem;
    }

    .cta-card {
        flex-direction: row;
        border-radius: 80px;
        text-align: left;
    }
    .cta-content {
        flex: 1;
        z-index: 2;
        padding: 3.5rem;
    }
    
    .cta-text {
        font-size: 1.25rem;
    }

    .cta-text--small {
        font-size: 1.1rem;
    }

    .cta-image {
        width: 50%;
        height: auto;
        order: 0;
    }

     .cta-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        flex: 1;
    } 

    .footer {
        padding: 2rem 1.5rem;
    }
}


/* –––– Desktop Styles (1024px+) –––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (min-width: 1024px) {

    .hero {
        padding: 13rem 1.5rem 14rem 1.5rem;
    }

    .hero p {
        font-family: 'Poppins', 'OpenSans', sans-serif;
        font-size: 2rem;
        font-weight: 400;
        line-height: 150%;
        margin: var(--spacing-xxl) 0rem var(--spacing-lg) 0rem;
    }

    .hero-portfolio-title {
        font-family: 'Poppins', 'OpenSans', sans-serif;
        font-size: 6rem;
        font-kerning: normal;
        margin-top: 0.25rem;
    }

    nav {
        max-width: 1200px;
    }

    .logo {
        gap: var(--spacing-xs);
    }

    .name,
    .logo-text { 
        display: flex;
    }

    section {
        padding: 4rem 2rem;
    }

    .card {
        border-radius: var(--border-radius-xl);
    }

    figcaption {
    font-size: 0.875rem;
    color: var(--text-detail);
    padding: var(--spacing-sm) var(--spacing-xl)  var(--spacing-lg)  var(--spacing-xl);
}

    /* Desktop Card Responsive Styles */
    .card--outer {
        padding: var(--spacing-xl);
        border-radius: var(--border-radius-xl);
    }

    .card--inner {
        padding: var(--spacing-lg);
        border-radius: var(--border-radius-lg);
    }

    /* Remove card margins when inside grids - desktop */
    .grid .card--outer,
    .grid .card--inner {
        margin-bottom: 0;
        margin-top: 0;
    }


    /* Enhanced desktop grid layouts */
    .grid--cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid--cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .work-image {
        height: 400px;
    }

    /* Desktop testimonials layout */
    .testimonials.grid--cols-1 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Desktop stats grid layout - accommodate 3-4 stats */
    .stats-grid.grid--cols-1 {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Enhanced work grid for desktop */
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .testimonial {
        padding: var(--spacing-xl);
        border-radius: var(--border-radius-xl);
    }

    .section-title {
        font-size: 2rem;
    }
    
    .cta-card {
        flex-direction: row;
        text-align: left;
    }

    .cta-text {
        font-size: 1.5rem;
    }

    .cta-text--small {
        /* font-size: 1.5rem; */
        padding: var(--spacing-sm);
    }

    /* Desktop: CTA card image takes 1/3 (33.333%) */
    .card--cta {
        flex-direction: row;
        border-radius: 80px;
        text-align: left;
    }
    .cta-image {
        width: 33%;
        height: auto;
        order: 0;
    }

}