/* ==========================================
   TABLE OF CONTENTS
   ========================================== 
   
   1. Global Styles & Variables
   2. Navigation
   3. Hero Section (Homepage)
   4. Section Titles
   5. Design Gallery (Homepage)
   6. Case Studies Grid (Homepage)
   7. Password Modal
   8. Case Study Page - Hero
   9. Case Study Page - Article Content
   10. Case Study Page - Images & Carousel
   11. Case Study Page - Navigation (Back/Next)
   12. Client List
   13. Footer
   14. Responsive Styles
   
   ========================================== */

   /* ==========================================
   CSS VARIABLES DEFINED PER CASE STUDY
   ========================================== 
   
   Define these in each HTML file's <style> block:
   --hero-bg: background color/gradient for hero
   --hero-text: text color for hero (optional)
   --accent-color: accent color (optional)

   use class="case-study-page" on the case study
   pages so that the nav changes color
   
   ========================================== */

/* ==========================================
   1. GLOBAL STYLES & VARIABLES
   ========================================== */

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

:root {
    --color-black: #0a0a0a;
    --color-white: #ffffff;
    --color-gray-light: #f6f6f6;
    --color-gray-mid: #e0e0e0;
    --color-gray-dark: #666666;
    --color-blue: #0080ff;
    --max-width: 1200px;
}

body {
    font-family:  /* -apple-system, BlinkMacSystemFont, */ 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-black);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Highlight utility class */
.marker-highlight {
    background: linear-gradient(180deg, transparent 80%, rgba(124, 165, 212, 0.3) 80%);
    padding: 0 4px 2px 4px;
}


/* Prevent flash before animations load */
.hero-container,
.hero-description,
.client-logo {
    opacity: 0;
    transform: translateY(30px);
}

/* For case study pages */
.case-study-hero h1,
.case-study-hero h2,
.info-grid,
.hero-image {
    opacity: 0;
    transform: translateY(30px);
}

/* For about page */
.image-left {
    opacity: 0;
    transform: translateY(30px);
}

/* nav animation */
nav {
    transition: transform 0.3s ease;
}

/* ==========================================
   2. NAVIGATION
   ========================================== */

/* DEFAULT NAV - for homepage (solid white) */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

nav .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #0a0a0a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--color-gray-dark);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

/* Homepage nav hover */
.nav-links a:hover {
    color: var(--color-black);
}

/* CASE STUDY PAGES - transparent nav that adapts */
.case-study-page nav {
    background: transparent;
}

.case-study-page .nav-links a {
    color: var(--hero-text2);
}

/* Case study nav hover */
.case-study-page .logo,
.case-study-page .nav-links a:hover {
    color: var(--hero-text1);
}

/* When scrolled on case study pages */
.case-study-page nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.case-study-page nav.scrolled .logo {
    color: #0a0a0a;
}
.case-study-page nav.scrolled .nav-links a {
    color: var(--color-gray-dark);
}

/* Scrolled nav hover - back to dark hover */
.case-study-page nav.scrolled .nav-links a:hover {
    color: var(--color-black);
}

/* ==========================================
   3. HERO SECTION (Homepage)
   ========================================== */

.hero {
    padding: 120px 40px 80px;
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 38px;
    background: var(--color-gray-mid);
    margin: 0 auto 40px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 78px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 16px;
    color: var(--color-gray-dark);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.hero-description a {
    color: var(--color-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.hero-description a:hover {
    border-bottom-color: var(--color-blue);
}


/* Typing hero h1 text */
.hero-container {
    padding: 2rem 0;
    font-size: 78px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.static-text {
    color: var(--color-black);
}

.dynamic-word {
    color: var(--color-blue);
    border-right: 2px solid var(--color-blue);
    display: inline-block;
    min-width: 8px;
}

.dynamic-word.blinking {
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { border-right-color: transparent; }
}


/* ==========================================
   4. SECTION TITLES
   ========================================== */

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
}

/* ==========================================
   5. DESIGN GALLERY (Homepage)
   ========================================== */

.design-gallery-section {
    padding: 0;
    background: var(--color-white);
}

.gallery-grid {
    max-width: 100%;
    margin: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gallery-grid-item {
    position: relative;
    border-radius: 6px;
    background: var(--color-gray-light);
    overflow: hidden;
    cursor: default;
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
}

.gallery-grid-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-grid-item::before {
    content: attr(data-number);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
    padding: 0 20px 16px;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.gallery-item-overlay h3 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    margin: 0;
}

/* ==========================================
   6. CASE STUDIES GRID (Homepage)
   ========================================== */

.case-studies-section {
    padding: 80px 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.case-study {
    position: relative;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-mid);
}

.case-study:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.case-study-image {
    width: 100%;
    height: 350px;
    background: var(--color-gray-light);
    position: relative;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lock-icon {
    font-size: 14px;
}

.case-study-content {
    padding: 30px;
}

.case-study-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.case-study-content p {
    font-size: 15px;
    color: var(--color-gray-dark);
    line-height: 1.6;
}

/* ==========================================
   7. PASSWORD MODAL
   ========================================== */

.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);  /* Safari support */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.password-modal.active {
    display: flex;
}

.password-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.password-box h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.password-box p {
    color: var(--color-gray-dark);
    margin-bottom: 30px;
    font-size: 14px;
}

.password-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-gray-mid);
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--color-blue);
}

.password-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-black);
    color: white;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-black);
}

.btn-secondary:hover {
    background: var(--color-gray-mid);
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

/* ==========================================
   8. CASE STUDY PAGE - HERO
   ========================================== */

   

.case-study-hero {
    background: var(--hero-bg, var(--color-gray-light));
    padding: 140px 40px 80px;
}

.hero-layout {
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content {
    max-width: 900px;
}

.case-study-hero h1 {
    font-size: 75px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--hero-text1);
}

.case-study-hero h2 {
    font-size: 22px;
    font-weight: 400;
    color: var(--hero-text2);
    margin-bottom: 50px;
    max-width: 700px;
}

.hero-image {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Project Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    column-gap: 60px;
    row-gap: 12px;
    margin-bottom: 24px;
}

.info-grid h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    color: var(--hero-text1);
}

.info-column {
    margin-bottom: 12px;
}

.info {
    list-style: none;
}

.info li {
    break-inside: avoid;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--hero-text2);
    position: relative;
    padding-left: 0;
}

/* ==========================================
   9. CASE STUDY PAGE - ARTICLE CONTENT
   ========================================== */


.case-study-article {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 40px;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 80px;
    margin-bottom: 24px;
    color: var(--color-black);
}

.content-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--color-black);
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 20px;
}

.content-section ul {
    margin: 24px 0;
    padding-left: 24px;
}

.content-section li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 12px;
}

.content-section li strong {
    color: var(--color-black);
    font-weight: 600;
}

.quote {
    margin: 60px 0;
    padding-left: 32px;
    border-left: 4px solid var(--color-blue);
    font-size: 20px;
    font-style: italic;
    color: var(--color-black);
    line-height: 1.6;
}

.quote-author {
    margin-top: 16px;
    font-size: 15px;
    font-style: normal;
    color: var(--color-gray-dark);
    font-weight: 600;
}

/* Content with side image */
.case-study-article .content-with-image {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    width: calc(100% + 200px); /* Breakout */
    margin-left: -100px; /* Center the breakout */
    margin-top: 60px;
    margin-bottom: 60px;
}

.case-study-article .content-with-image .image-column {
    flex: 0 0 300px; /* Fixed width for image column */
    min-width: 0;
}

.case-study-article .content-with-image .image-column img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.case-study-article .content-with-image .text-column {
    flex: 1; /* Text takes remaining space */
}

.case-study-article .content-with-image h2 {
    margin-top: 0;
}



/* ==========================================
   10. CASE STUDY PAGE - IMAGES & CAROUSEL
   ========================================== */

/* BASE IMAGE STYLES - Applies to all figures unless overridden by grid classes */
.case-study-article figure,
.case-study-article .content-image {
    max-width: 900px;
    width: calc(100% + 200px);
    margin-left: -100px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.case-study-article figure img,
.case-study-article .content-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.case-study-article figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-gray-dark);
    text-align: center;
    font-style: italic;
}

.case-study-article .image-with-shadow img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.case-study-article .image-with-outline img {
    outline: 2px solid var(--color-gray-mid);
    outline-offset: -2px; /* Sits inside the image */
}

.case-study-article .phone-size {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.case-study-article figure.phone-size {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}


/* PROPORTIONAL WIDTH GRID - same height, different widths based on aspect ratio */
.case-study-article .image-grid-flex {
    max-width: 900px;
    width: calc(100% + 200px);
    margin-left: -100px;
    margin-top: 60px;
    margin-bottom: 60px;
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.case-study-article .image-grid-flex figure {
    width: auto;
    margin: 0;
    flex-shrink: 1;
}

.case-study-article .image-grid-flex figure img {
    height: 250px; /* Adjust this value to make images fit side-by-side within 900px */
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* 2-COLUMN GRID - equal width columns */
.case-study-article .image-grid-2 {
    max-width: 900px;
    width: calc(100% + 200px);
    margin-left: -100px;
    margin-top: 60px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    /*   background: var(--color-gray-light); */
}

.case-study-article .image-grid-2 figure {
    width: 100%;
    margin: 0;
}

.case-study-article .image-grid-2 figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 3-COLUMN GRID */
.case-study-article .image-grid-3 {
    max-width: 900px;
    width: calc(100% + 200px);
    margin-left: -100px;
    margin-top: 60px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.case-study-article .image-grid-3 figure {
    width: 100%;
    margin: 0;
}

.case-study-article .image-grid-3 figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 4-COLUMN GRID */
.case-study-article .image-grid-4 {
    max-width: 900px;
    width: calc(100% + 200px);
    margin-left: -100px;
    margin-top: 60px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.case-study-article .image-grid-4 figure {
    width: 100%;
    margin: 0;
}

.case-study-article .image-grid-4 figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Gray background variant for any grid */
.case-study-article .bg-gray {
    max-width: 900px;
    width: calc(100% + 200px);
    margin-left: -100px;
    background: #ECECEC;
    padding: 40px;
    border-radius: 8px;

}

/* Left justified image */
.case-study-article .image-left {
    max-width: 300px;
    margin-left: 0;
    margin-right: auto;
}




/* Image Carousel */
.case-study-article .image-carousel {
    margin: 60px 0;
    width: calc(100% + 200px);
    margin-left: -100px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-gray-light);
    max-width: 900px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

/* .carousel-track figure {
    width: 100%;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-light);
} */

.carousel-track img {
    width: 100%;
    flex-shrink: 0;
    display: block;
    height: auto;
    object-fit: contain;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
    line-height: 1;
    padding-bottom: 3px;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

/* Carousel Thumbnails */
.carousel-thumbnails {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.carousel-thumbnail {
    width: 80px;
    height: 60px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.carousel-thumbnail:hover {
    opacity: 0.8;
}

.carousel-thumbnail.active {
    border-color: var(--color-black);
    opacity: 1;
}

.carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   11. CASE STUDY PAGE - NAVIGATION
   ========================================== */

/* Back to Portfolio */
.back-section {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 0 40px 60px;
}

.back-link {
    display: inline-block;
    font-size: 16px;
    color: var(--color-black);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--color-blue);
}

/* Next Project Section */
.next-project-section {
    background: var(--color-gray-light);
    padding: 60px 0;
    margin-top: 0;
}

.next-project-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px;
}

.next-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.next-project-card {
    display: flex;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--color-gray-mid);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: white;
}

.next-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--color-gray-mid);
}

.next-project-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    background: var(--color-gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.next-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.next-project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.next-project-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
}

.next-project-content p {
    font-size: 15px;
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.view-arrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-blue);
}

/* ==========================================
   12. CLIENT LIST
   ========================================== */

.client-section {
    padding: 80px 40px;
    background: var(--color-gray-light);
}

.client-section .section-title {
    margin-bottom: 20px;
}

.client-subtitle {
    text-align: center;
    color: var(--color-gray-dark);
    font-size: 15px;
    margin-bottom: 60px;
}

.client-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 20px;
    padding: 0px 40px;
    align-items: center;
}

.client-logo {
    width: 100%;
    aspect-ratio: 4 / 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-2px);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================
   13. FOOTER
   ========================================== */

footer {
    padding: 60px 40px;
    text-align: center;
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-mid);
}

footer p {
    color: var(--color-gray-dark);
    font-size: 14px;
}

/* ==========================================
   14. RESPONSIVE STYLES
   ========================================== */

/* Tablet & Mobile - 900px breakpoint */
@media (max-width: 900px) {
    .case-study-article figure,
    .case-study-article .content-image,
    .case-study-article .image-grid-flex,
    .case-study-article .image-grid-2,
    .case-study-article .image-grid-3,
    .case-study-article .image-grid-4,
    .case-study-article .image-carousel {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }

        /* Image grids stack vertically */
    .case-study-article .image-grid-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .case-study-article .image-grid-flex figure img {
        width: 100%;
        height: auto;
    }

    .case-study-article .content-with-image {
        flex-direction: column;
    }
    
    .case-study-article .content-with-image .image-column {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Mobile - 700px breakpoint */
@media (max-width: 700px) {
    /* Navigation */
    nav .container {
        padding: 0 24px;
    }

    .nav-links {
        gap: 20px;
    }
    
    /* Homepage Hero */
    .hero {
        padding: 100px 24px 60px;
    }

    .profile-image {
        width: 80px;
        height: 80px;
        background: var(--color-gray-mid);
        margin: 0 auto 0px;
        overflow: hidden;
    }
    
    .hero-container,
    .hero h1 {
        font-size: 34px;
    }
    
    .section-title {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 36px;
    }
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid-item::before {
        font-size: 30px;
    }
    
    /* Case Studies Grid */
    .case-studies-section {
        padding: 60px 24px;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    /* Case Study Hero */
    .case-study-hero {
        padding: 100px 24px 60px;
    }

    /* Case Study Hero */
    .case-study-hero h1 {
        font-size: 48px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
  
    /* Case Study Article */
    .case-study-article {
        padding: 60px 24px;
    }
    
    .content-section h2 {
        font-size: 28px;
    }
    
    .content-section h4 {
        font-size: 16px;
    }
    
    .content-section p,
    .content-section li {
        font-size: 15px;
    }


    
    .case-study-article .image-grid-2,
    .case-study-article .image-grid-3,
    .case-study-article .image-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Carousel */
    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    /* Client Grid */
    .client-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        padding: 0px;
    }
}

/* Small Mobile - 600px breakpoint */
@media (max-width: 600px) {
    .next-project-card {
        flex-direction: column;
    }
    
    .next-project-image {
        width: 100%;
        height: 200px;
    }
}