/* Update these styles at the top */
:root {
    --clr: #000000;
    --bg: #ffffff;
    --font-primary: 'Noto Sans', sans-serif;
    --dot-size: 1px;
    --dot-space: 6px;
    --content-dot-size: 3px;  /* 20% larger than accent block dots */
    --content-dot-space: 20px;  /* 20% larger spacing */
}

body {
    font-family: var(--font-primary);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.page-content h3 {
    font-size: 1.4rem;
    letter-spacing: 1px;
    border-bottom: 1px dashed #333;
}

.page-content h4 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.navbar {
    padding: 2rem 0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 4px solid #000;
    box-shadow: 0 4px 0 #000;
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: #000 !important;
    box-shadow: 0 4px 0 #fff;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: #fff !important;
}

.navbar.scrolled .navbar-toggler {
    border-color: #fff;
    border-width: 2px;
}

.navbar.scrolled .navbar-toggler-icon {
    filter: invert(1);
}

.navbar.scrolled .nav-link:hover::after {
    background-color: #fff;
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #000;
    text-transform: uppercase;
}

li.nav-item {
    margin: 0 1rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    letter-spacing: 3px;
    color: #000;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #000;
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #000;
}

.card {
    border: 4px solid #000;
    border-radius: 0;
    transition: transform 0.2s;
    background-color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card * {
    transition: all 0.3s ease;
}

.card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.7) !important;
    transition: background-color 0.3s ease;
}

.card .card-body:hover,
.card .card-body:focus-within {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateX(10px);
    box-shadow: -10px 10px 0 #000;
}

/* Brutalist accents */
.accent-block {
    color: #fff;
    padding: 3rem;
    margin: 3rem 0;
    position: relative;
    background-image: url('/projects/jonwretlind-site-nov-2024/assets/images/texture.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.accent-block::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(
            circle at center,
            #000 var(--dot-size),
            transparent var(--dot-size)
        );
    background-size: var(--dot-space) var(--dot-space);
    opacity: 0.5;
    z-index: -1;
}
.accent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #2c2c2c65, #6363633e);
}
.accent-title {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #fff;
    text-transform: uppercase;
}

.card-header:first-child {
    border-radius: 0px !important;
}

/* Custom utility classes */
.text-mono {
    font-family: 'Courier New', monospace;
    letter-spacing: -0.5px;
}


.project-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    border-radius: 0px;
    border-bottom: 1px solid #cccccc;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-container {
    margin-top: unset !important;
}

.card-img, .card-img-top {
    border-radius: 0px;
}

.placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
}

.tech-stack .badge {
    font-weight: 500;
    padding: 0.5em 1em;
    margin-bottom: 0.5em;
}

.card {
    transition: transform 0.3s ease;
    border: 2px solid #000;
}

.card:hover {
    transform: translateY(-5px);
}

.border-thick {
    border-width: 2px;
}

.text-mono {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, Monaco, monospace;
}

.doodle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.05;
    pointer-events: auto;
    background-color: transparent;
}

css-doodle {
    width: 100%;
    height: 100%;
    --base: {
        position: absolute;
    }
    mix-blend-mode: multiply;
}

/* Add background pattern to main */
main {
    padding-top: 0;
    padding-bottom: 2rem;
    position: relative;
    background-image: 
        radial-gradient(
            circle at center,
            #000 var(--bg-dot-size),
            transparent var(--bg-dot-size)
        );
    background-size: var(--bg-dot-space) var(--bg-dot-space);
    flex: 1;
}

/* Ensure content stays above both patterns */
.row {
    position: relative;
    z-index: 1;
}

/* Add content background pattern */
content {
    display: block;
    position: relative;
    background-image: 
        radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0.10) var(--content-dot-size),
            transparent var(--content-dot-size)
        );
    background-size: var(--content-dot-space) var(--content-dot-space);
    background-color: #ffffff;
}

/* Ensure main content stays above the dots */
main {
    position: relative;
    z-index: 1;
}

/* Update the col-md-6 to ensure equal height rows */
.col-md-6 {
    margin-bottom: 2rem;
    display: flex;
}

/* Case Study Styles */
.case-study {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.case-study .accent-block {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.case-study .project-meta {
    margin-top: auto;
}

.case-study .project-gallery {
    position: relative;
}

@media (min-width: 992px) {
    .case-study .project-gallery {
        height: 100%;
    }

    .case-study .slideshow-container {
        height: calc(100% - 100px); /* Adjust based on controls height */
    }

    .case-study .case-study-content {
        font-size: 1.1rem;
        line-height: 1.7;
        padding: 3rem;
        background: rgba(0, 0, 0, 0.1);
        border-top: 4px solid #000;
        margin: 2rem 0;
    }
}

/* Adjust slideshow controls for better spacing */
.case-study .slideshow-controls {
    padding: 0.75rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
}

/* Make sure images maintain aspect ratio */
.case-study .slide-image {
    object-fit: contain;
    max-height: 100%;
    width: auto;
    margin: 0 auto;
}

/* Ensure content is properly spaced */
.case-study .project-meta {
    padding: 1.5rem;
    margin-bottom: 0;
}

/* Remove sticky positioning since we're matching heights */
.case-study .project-gallery {
    position: relative !important;
    top: 0 !important;
}

.case-study-image {
    margin: -2rem -2rem 2rem;
    position: relative;
    overflow: hidden;
    border: 4px solid #000;
}

.case-study-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.project-meta {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.35);
    border-left: 4px solid #000;
}

.tech-stack .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background: #000;
    color: #fff !important;
}

/* Case Study Specific Styles */
.case-study .accent-block {
    margin-top: 2rem;
}

.case-study .project-meta {
    background: rgba(0, 0, 0, 0.35);
    padding: 2rem;
    border: 1px solid #ccc;
}

.case-study .case-study-image {
    margin: 2rem 0;
    border: 4px solid #000;
    transition: transform 0.3s ease;
}

.case-study .case-study-image:hover {
    transform: translateX(10px);
    box-shadow: -10px 10px 0 #000;
}

.case-study .case-study-content {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 2rem 0;
}

.case-study .tech-stack .badge {
    font-size: .8rem;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #000 !important;
    border: 2px solid #000;
}

.case-study .project-meta strong {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Brutalist Slideshow Styles */
.brutalist-slideshow {
    position: relative;
    margin: 2rem 0;
    background: #fff;
    border: 4px solid #000;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: #ddd;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    cursor: zoom-in;  /* Show zoom cursor */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-image:hover {
    transform: scale(1.02);  /* Slightly enlarge on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);  /* Add shadow on hover */
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: #000;
    color: #fff;
    font-family: 'Courier New', monospace;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.slide:hover .slide-caption {
    transform: translateY(0);
}

.slideshow-controls {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-top: 4px solid #000;
}

.slide-indicators {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
}

.indicator {
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: #000;
    color: #fff;
}

.indicator.active {
    background: #000;
    color: #fff;
}

.prev-slide,
.next-slide {
    position: relative;
    z-index: 2;
    padding: 0.5rem 1rem;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-weight: bold;
    transition: all 0.3s ease;
}

.prev-slide:hover,
.next-slide:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* Brutalist hover effects */
.brutalist-slideshow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        #000,
        #000 2px,
        transparent 2px,
        transparent 8px
    );
    z-index: -1;
    transition: transform 0.3s ease;
}

.brutalist-slideshow:hover::before {
    transform: translate(5px, 5px);
}

/* Case Study Layout Styles */
@media (min-width: 992px) {
    .case-study .project-gallery {
        height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .case-study .project-gallery::-webkit-scrollbar {
        width: 8px;
    }

    .case-study .project-gallery::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .case-study .project-gallery::-webkit-scrollbar-thumb {
        background: #000;
    }

    .case-study .project-gallery .brutalist-slideshow {
        position: sticky;
        top: 0;
    }

    .case-study .slideshow-container {
        height: 400px;
    }

    .case-study .accent-block {
        margin-top: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .case-study .project-gallery {
        margin-top: 2rem;
    }
}

/* Update slideshow styles */
.case-study .project-gallery h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.case-study .slideshow-controls {
    padding: 0.5rem;
}

.case-study .indicator {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
}

.case-study .prev-slide,
.case-study .next-slide {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Update layout styles */
@media (min-width: 992px) {
    .case-study .project-gallery {
        height: calc(100vh - 150px);
    }

    .case-study .slideshow-container {
        height: 500px;  /* Make slideshow taller */
    }

    .case-study .accent-block {
        padding: 2rem;  /* Slightly reduce padding for title block */
    }

    .case-study .project-gallery .accent-block {
        padding: 1.5rem;  /* Even smaller padding for gallery block */
    }
}

/* Adjust spacing between elements */
.case-study .case-study-content {
    font-size: 1.1rem;  /* Slightly smaller text */
    line-height: 1.7;
}

.case-study .project-meta {
    padding: 1.5rem;  /* Reduce padding */
}

/* Update the gallery accent block styles */
.case-study .project-gallery .accent-block {
    background: #000;
    position: relative;
    padding: 2rem;
    border: none;
}

/* Add diagonal stripes to accent block background */
.case-study .project-gallery .accent-block::before {
    content: '';
    position: absolute;
    top: -21px;
    left: -25px;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        #222 0px,
        #222 40px,
        #000 40px,
        #000 80px
    );
    opacity: 0.3;
    z-index: -1;
}

/* Ensure content stays above the pattern */
.case-study .project-gallery .accent-block > * {
    position: relative;
    z-index: 1;
}

/* White background for slideshow */
.case-study .brutalist-slideshow {
    background: #fff;
    border: 4px solid #fff;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Remove any previous pattern styles */
.case-study .project-gallery .accent-block::after {
    display: none;
}

/* Container adjustments */
.case-study .project-gallery {
    padding: 20px 20px 0px 20px;  /* Add padding to show the pattern */
    background: transparent;
}

/* Ensure proper height with new margins */
@media (min-width: 992px) {
    .case-study .project-gallery {
        min-height: calc(100% - 40px);  /* Account for margins */
    }
}

/* Ensure content stays above backgrounds */
.case-study .project-gallery .accent-block > * {
    position: relative;
    z-index: 1;
}

/* Center images horizontally */
.case-study .slide-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 1rem;
}

.case-study .slide-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Update slideshow controls */
.case-study .slideshow-controls {
    position: relative;
    background: #000;
    padding: 1rem;
    border-top: 4px solid #fff;
    z-index: 10;
}

/* Lightbox Styles */


/* Add a subtle overlay with a "click to zoom" message */
.slide-content {
    position: relative;
}

.slide-content::before {
    content: 'Click to zoom';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border: 1px solid #fff;
}

.slide-content:hover::before {
    opacity: 1;
}

/* Project Cards */
.project-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-card .card-img-top {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.project-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-card .badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5em 0.75em;
}

.project-card .btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-card {
        margin-bottom: 1.5rem;
    }
}

/* Project Cards - Equal Widths and Heights */
.projects-page .card,
.featured-projects .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 400px; /* Minimum height for consistency */
}

.projects-page .col-md-6,
.featured-projects .col-md-6 {
    display: flex;
    margin-bottom: 2rem;
}

.projects-page .col-md-6 .card,
.featured-projects .col-md-6 .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projects-page .card .card-body,
.featured-projects .card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.projects-page .card .card-text,
.featured-projects .card .card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.projects-page .card .btn,
.featured-projects .card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Ensure project images maintain consistent aspect ratio */
.projects-page .project-image,
.featured-projects .project-image {
    height: 200px; /* Fixed height for consistency */
    min-height: 200px;
    flex-shrink: 0;
}

.projects-page .project-image img,
.featured-projects .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Home page specific overrides for equal card widths */
.featured-projects .row {
    display: flex;
    flex-wrap: wrap;
}

.featured-projects .col-md-6 {
    display: flex !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    margin-bottom: 2rem !important;
}

.featured-projects .col-md-6 .card {
    width: 100% !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.featured-projects .card {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 400px !important;
}

.featured-projects .card .card-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.featured-projects .card .card-text {
    flex-grow: 1 !important;
    margin-bottom: 1rem !important;
}

.featured-projects .card .btn {
    align-self: flex-start !important;
    margin-top: auto !important;
}

.featured-projects .project-image {
    height: 200px !important;
    min-height: 200px !important;
    flex-shrink: 0 !important;
}

.featured-projects .project-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Responsive Grid System */
/* Large screens (1280px and up) - 3 columns */
@media (min-width: 1280px) {
    .projects-page .col-md-6,
    .featured-projects .col-md-6 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
    
    .projects-page .card,
    .featured-projects .card {
        min-height: 450px; /* Slightly taller for 3-column layout */
    }
    
    .projects-page .project-image,
    .featured-projects .project-image {
        height: 220px;
        min-height: 220px;
    }
}

/* Medium screens (768px to 1279px) - 2 columns */
@media (min-width: 768px) and (max-width: 1279px) {
    .projects-page .col-md-6,
    .featured-projects .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .projects-page .card,
    .featured-projects .card {
        min-height: 400px;
    }
    
    .projects-page .project-image,
    .featured-projects .project-image {
        height: 200px;
        min-height: 200px;
    }
}

/* Small screens (below 768px) - 1 column */
@media (max-width: 767px) {
    .projects-page .col-md-6,
    .featured-projects .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem !important;
    }
    
    .projects-page .card,
    .featured-projects .card {
        min-height: 350px;
    }
    
    .projects-page .project-image,
    .featured-projects .project-image {
        height: 180px;
        min-height: 180px;
    }
}

/* Masonry Layout for Projects Page */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 0;
}

.masonry-item .card {
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
}

.masonry-item .card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.masonry-item .card .card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.masonry-item .card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.masonry-item .project-image {
    height: 200px;
    min-height: 200px;
    flex-shrink: 0;
}

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

/* Responsive Masonry Grid */
@media (min-width: 1280px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .masonry-item .card {
        min-height: 450px;
    }
    
    .masonry-item .project-image {
        height: 220px;
        min-height: 220px;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .masonry-item .card {
        min-height: 400px;
    }
    
    .masonry-item .project-image {
        height: 200px;
        min-height: 200px;
    }
}

@media (max-width: 767px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .masonry-item .card {
        min-height: 350px;
    }
    
    .masonry-item .project-image {
        height: 180px;
        min-height: 180px;
    }
}

/* Hero Background Image Slider */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    margin-top: 0;
}

.hero h1,
.hero p,
.hero .btn {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero .btn {
    background-color: #000;
    border: 2px solid #fff;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero .btn:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Fallback for when no images are available */
.hero-background-slider:empty::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    z-index: 1;
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-align: center;
    max-width: 80%;
    border: 1px solid #fff;
}

.lightbox-counter {
    position: fixed;
    top: 140px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid #fff;
    z-index: 10000;
}

.lightbox-close {
    position: fixed;
    top: 140px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    border: 2px solid #fff;
    width: 50px;
    height: 50px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: none !important; /* Force hide by default */
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Show lightbox close button only when lightbox is active - use !important */
.lightbox-modal.active .lightbox-close {
    display: flex !important;
}

/* Force hide lightbox close button when lightbox is not active */
.lightbox-modal:not(.active) .lightbox-close {
    display: none !important;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid #fff;
    width: 50px;
    height: 80px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #fff;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* Make slide images clickable with visual feedback */
.slide-image.lightbox-trigger {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.slide-image.lightbox-trigger:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Responsive adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 10px;
    }
    
    .lightbox-image-container {
        max-width: 95%;
    }
    
    #lightbox-image {
        max-height: 70vh;
    }
    
    .lightbox-caption {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    
    .lightbox-counter {
        font-size: 0.8rem;
        padding: 8px 12px;
        top: 100px;
    }
    
    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 100px;
        display: none !important; /* Ensure hidden by default in responsive */
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 60px;
        font-size: 16px;
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 480px) {
    .lightbox-counter {
        top: 90px;
        left: 10px;
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .lightbox-close {
        top: 90px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
        display: none !important; /* Ensure hidden by default in responsive */
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 35px;
        height: 50px;
        font-size: 14px;
    }
}

/* Footer Styles */
.footer {
    background-color: #f8f9fa;
    border-top: 4px solid #000;
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer h5 {
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer a {
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #000 !important;
    text-decoration: underline !important;
}

.footer .text-muted {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Mobile-optimized styles for case study slideshow and lightbox */
@media (max-width: 767px) {
    /* Slideshow mobile optimizations */
    .case-study .slideshow-container {
        height: 300px; /* Smaller height for mobile */
        touch-action: pan-y pinch-zoom; /* Enable touch gestures */
    }
    
    .case-study .slide-image {
        cursor: grab; /* Show grab cursor on mobile */
    }
    
    .case-study .slide-image:active {
        cursor: grabbing; /* Show grabbing cursor when dragging */
    }
    
    /* Hide navigation arrows on mobile - rely on swiping */
    .case-study .prev-slide,
    .case-study .next-slide {
        display: none !important;
    }
    
    /* Simplify slideshow controls for mobile */
    .case-study .slideshow-controls {
        padding: 0.5rem;
        justify-content: center; /* Center the indicators */
        background: rgba(0, 0, 0, 0.8); /* Darker background for better visibility */
    }
    
    .case-study .slide-indicators {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }
    
    /* Simplified indicators - just dots instead of numbers */
    .case-study .indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 2px solid #fff;
        background: transparent;
        color: transparent; /* Hide the numbers */
        font-size: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .case-study .indicator.active {
        background: #fff;
        border-color: #fff;
    }
    
    .case-study .indicator:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    
    /* Mobile slideshow layout - captions below images */
    .case-study .slide-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 0;
    }
    
    .case-study .slide-image {
        flex: 1;
        object-fit: contain;
        max-height: 70%; /* Leave space for caption */
    }
    
    /* Mobile slide captions - positioned below image */
    .case-study .slide-caption {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.9);
        color: #fff;
        font-size: 0.875rem;
        transform: none;
        margin-top: auto;
        flex-shrink: 0;
    }
    
    /* Remove hover effects on mobile */
    .case-study .slide:hover .slide-caption {
        transform: none;
    }
    
    /* Add close icon to slideshow for mobile - only when lightbox is active */
    .case-study .slideshow-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
        border: 2px solid #fff;
        border-radius: 50%;
        display: none; /* Hidden by default */
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
    }
    
    /* Show slideshow close button only when lightbox is active */
    body.lightbox-active .case-study .slideshow-close {
        display: flex;
    }
    
    /* Lightbox mobile optimizations - maximize image size */
    .lightbox-modal {
        touch-action: pan-y pinch-zoom; /* Enable touch gestures */
        top: 100px;
    }
    
    .lightbox-content {
        padding: 0.5rem;
        max-width: 100vw;
        max-height: 100vh;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    .lightbox-image-container {
        flex: 1;
        max-height: 75vh; /* Reduced to make room for caption */
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    .lightbox-image-container img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    /* Show caption in mobile lightbox */
    .lightbox-caption {
        display: block !important;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.9);
        color: #fff;
        font-size: 0.875rem;
        text-align: center;
        margin-top: 0.5rem;
        flex-shrink: 0;
    }
    
    /* Simplified lightbox controls for mobile */
    .lightbox-close {
        top: 9.5rem;
        right: 2.5rem;
        min-width: 40px;
        min-height: 40px;
        font-size: 1.25rem;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 50%;
        border: 2px solid #fff;
    }
    
    .lightbox-prev,
    .lightbox-next {
        display: none !important; /* Hide arrows on mobile - rely on swiping */
    }
    
    /* Hide counter on mobile to save space */
    .lightbox-counter {
        display: none !important;
    }
    
    /* Remove swipe indicator since arrows are hidden */
    .lightbox-modal::before {
        display: none !important;
    }
    
    /* Optimize case study layout for mobile */
    .case-study .row {
        margin-bottom: 2rem;
    }
    
    .case-study .accent-block {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .case-study .project-gallery {
        margin-top: 1rem;
    }
}

/* Prevent zoom on double-tap for better mobile experience */
@media (max-width: 767px) {
    .slideshow-container,
    .lightbox-modal,
    .lightbox-content {
        touch-action: manipulation;
    }
}

/* Hide slideshow close button by default */
.slideshow-close {
    display: none;
}

/* Show slideshow close button only when lightbox is active on mobile */
@media (max-width: 767px) {
    body.lightbox-active .slideshow-close {
        display: flex !important;
    }
    
    /* Lightbox close button - only show when lightbox is active */
    .lightbox-modal.active .lightbox-close {
        display: flex !important;
    }
    
    /* Hide lightbox close button when lightbox is not active */
    .lightbox-modal:not(.active) .lightbox-close {
        display: none !important;
    }
    
    .case-study .slideshow-container {
        height: 300px; /* Smaller height for mobile */
        touch-action: pan-y pinch-zoom; /* Enable touch gestures */
    }
}

/* Show slideshow close button only when lightbox is active */
body.lightbox-active .case-study .slideshow-close {
    display: flex;
}

.case-study .slideshow-close:hover {
    background: rgba(0, 0, 0, 1);
    transform: scale(1.1);
}

/* Lightbox indicators */
.lightbox-indicators {
    display: none; /* Hide on desktop by default */
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
}

.lightbox-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.lightbox-indicator.active {
    background: #fff;
}

.lightbox-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Show lightbox indicators on mobile */
@media (max-width: 767px) {
    .lightbox-indicators {
        display: flex !important;
    }
} 