/* Global Styles */
:root {
    --primary-teal: #007A8D;
    --secondary-teal: #72c1c8;
    --muted-teal: #88a8b9;
    --primary-navy: #22262F;
    --dark-gray: #38516b;
    --medium-gray: #7e9ab2;
    --light-gray: #b9d2e8;
    --lightest-gray: #d8e7f2;
    --accent-burgundy: #50091d;
    --light-burgundy: #851332;
    --accent-pink: #b3566f;
    --white: #FFFFFF;
    --off-white: #FFF7E9;
    --pale-off-white: #fffcfb;
    --border-color: #DEE2E6;
}

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

body {
    font-family: Lato, Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    letter-spacing: -0.01em;
    color: var(--dark-gray);
    background-color: var(--pale-off-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1rem;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
    margin-top: 0.75rem;
}

hr {
    margin-bottom: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    opacity: 100%;
}

quote {
    font-style: italic;
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    border-left: 8px solid var(--medium-gray);
    padding-left: 1rem;
    display: block;
    padding: 1rem;
}

/* Link Styles */
a {
    color: var(--primary-teal);
    text-decoration: underline;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:visited {
    color: var(--primary-teal);
    text-decoration: underline;
}

a:hover,
a:active {
    color: var(--accent-burgundy);
    text-decoration: none;
}

.hero-intro-small {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-intro {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Navigation */
.navbar {
    background-color: var(--primary-navy) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--white) !important;
}

.navbar-brand .design-part {
    color: var(--primary-teal) !important;
    font-weight: 400;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-pink) !important;
}

.navbar-nav .nav-link i {
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-teal);
    background-image: url('images/hero-texture.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 3rem 0rem;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.case-study-hero {
    min-height: 300px;
}

.project-header-img {
    margin-top: 2rem;
}



.back-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--white);
    color: var(--white) !important;
    background-color: transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background-color: var(--primary-navy);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.hero-title {
    font-size: 4rem;
    font-weight: 350;
    line-height: 4rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1rem;
    font-display: uppercase;
    color: var(--primary-navy);
    margin-bottom: 0rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-image {
    max-width: 100%;
    height: auto;
}

.workdesk-image {
    max-width: 100%;
    height: auto;
    border-radius: 60px;

}


.hero-buttons .btn {
    background-color: var(--light-burgundy);
    border: 2px solid #611329;
    border-radius: 6px;
    box-shadow: #611329 4px 4px 0 0;
    color: var(--pale-off-white);
    display: inline-block;
    font-weight: 400;
    font-size: 17px;
    padding: 15px 16px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    margin-right: 1.25rem;
}



/* Button Styles */



.btn-primary {
    background-color: var(--light-burgundy) !important;
    border: 2px solid #611329 !important;
    border-radius: 6px !important;
    box-shadow: #611329 4px 4px 0 0 !important;
    color: var(--pale-off-white) !important;
    display: inline-block !important;
    font-weight: 400 !important;
    font-size: 17px !important;
    padding: 15px 16px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.btn-primary:hover {
    background-color: var(--accent-pink) !important;
    border-color: #611329 !important;
    transform: translateY(-2px);
}


/* Content Sections */

.content-section {
    margin: 2rem 0.5rem 2rem 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--dark-gray);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary-teal);
    margin-top: 2rem;
}

/* Homepage Specific */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.experience-card {
    background-color: var(--off-white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.experience-card h3 {
    color: var(--primary-teal);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.experience-card p {
    color: var(--dark-gray);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.philosophy-content {
    padding-left: 2rem;
}

.tools-grid {
    display: grid;
    gap: 1.5rem;
}

.tool-category h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.tool-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-logo {
    background-color: var(--off-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    border: 1px solid var(--border-color);
}

/* Utility - Circular image mask */
.img-circle {
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: inline-block;
}

/* Software logos image styling */
.software-logos {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Tools visual grid styling */
.tools-visual-grid {
    display: grid;
    gap: 1.5rem;
    margin-left: 2rem;
}

.tool-logos-visual {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items:center;
}

.tool-logo-img {
    object-fit: contain;
    transition: transform 0.2s ease;
}

.tool-logo-img:hover {
    transform: scale(1.1);
}

/* Uniform card image height for case study thumbnails */
.case-card-img {
    height: 280px;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
.footer-section {
    background-color: var(--dark-gray);
    background-image: url('images/footer-texture.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 3rem 0;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    color: var(--white) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: rgba(255,255,255,0.2);
    color: var(--white) !important;
    text-decoration: none;
    transform: translateX(5px);
}

.contact-link i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 3.25rem;
        line-height: 3.25rem;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    .tools-visual-grid {
        margin-top: 2rem;
        margin-bottom: 1rem;
        margin-left: 0rem;
        width: 100%;
    
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
        line-height: 3rem;
    }
    
    .content-section {
        padding: 0rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.6rem;
    }
    quote {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .contact-links {
        margin-top: 2rem;
    }
    
    /* Center logo on mobile */
    .navbar-brand {
        margin: 0 auto;
    }
    
    .navbar-collapse {
        text-align: center;
        margin-top: 1rem;
    }
}

/* Work Cards */
.work-card {
    background-color: var(--pale-off-white);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.work-icon {
    font-size: 2rem;
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.work-card h3 {
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.work-card p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Time Capsule Card */
.time-capsule-card {
    background-color: var(--dark-gray);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.time-capsule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.time-capsule-card img {
    border-radius: 16px;
    margin-bottom: 0.5rem;
}


.time-capsule-card .btn {
    margin-top: 0.5rem;
    color: var(--white) !important;
}

.time-capsule-img {
    max-width: 100%;
    height: auto;
}

.time-capsule-card h3 {
    color: var(--white);
    font-weight: 350;
    margin-bottom: 0.5rem;
}

.time-capsule-card .row {
    height: 100%;
    flex: 1;
}

/* Project Details Horizontal Layout */
.project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    vertical-align: top;
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.company-info {
    margin-top: 0rem;
    margin-bottom: 0rem;
    vertical-align: top;
}

.detail-item {
    flex: 1;
    min-width: 200px;
    vertical-align: top;
}

.detail-title {
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
    font-size: 1.2rem;
}

.detail-title:first-child {
    margin-top: 0;
}

.detail-item p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    vertical-align: top;
}

.detail-list li {
    color: var(--dark-gray);
    padding-left: 1rem;
    position: relative;
    font-size: 0.9rem;
    vertical-align: top;;
}

.detail-list li:before {
    content: "•";
    color: var(--primary-teal);
    position: absolute;
    left: 0;
}

.challenge-list {
    list-style: disc;
    padding-left: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 1.5rem;
    display: block;
}


/* Mobile responsive order for time capsule */
@media (max-width: 767.98px) {
    .time-capsule-card .row {
        flex-direction: column;
    }
    
    .time-capsule-card .col-md-4 {
        order: 1; /* Image first */
    }
    
    .time-capsule-card .col-md-8 {
        order: 2; /* Text and button second */
    }
    .full-width-hero-content {
        margin: 1rem 1rem;
    }
}

/* Mobile responsive for project details */
@media (max-width: 767.98px) {
    .project-details {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .detail-item {
        min-width: auto;
    }
}

/* Full Width Hero Image Section */
.full-width-hero {
    width: 100vw;
    min-height: 400px;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.full-width-hero-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    max-width: 600px;
    margin: 0 1rem;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.full-width-hero-content-homepage {
    text-align: left;
    width: 100%;
    margin: 1rem 1rem;
}

.full-width-hero .section-title-white {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.full-width-hero .section-subtitle-white {
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.full-width-hero-content p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Alternative solid background version */
.full-width-hero.solid-bg {
    background-color: var(--lightest-gray);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.full-width-hero.solid-bg .full-width-hero-content {
    background-color: var(--white);
    border: 1px solid var(--border-color);
}

/* Text-wrapping image styles */
.img-wrap-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.img-wrap-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.img-wrap-center {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Small text-wrapping images */
.img-wrap-small {
    max-width: 200px;
    margin: 0 1rem 1rem 0;
    border-radius: 6px;
}

.img-wrap-small-left {
    float: left;
    max-width: 200px;
    margin: 0 1rem 1rem 0;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.img-wrap-small-right {
    float: right;
    max-width: 200px;
    margin: 0 0 1rem 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Large text-wrapping images */
.img-wrap-large {
    max-width: 400px;
    margin: 0 2rem 1.5rem 0;
    border-radius: 12px;
}

.img-wrap-large-left {
    float: left;
    max-width: 400px;
    margin: 0 2rem 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.img-wrap-large-right {
    float: right;
    max-width: 400px;
    margin: 0 0 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Clear floats utility */
.clear-float {
    clear: both;
}

/* Image Caption Styles */
.img-with-caption {
    margin: 1.5rem 0;
}

.img-caption {
    font-size: 0.9rem;
    color: #38516b;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.img-caption.left {
    text-align: left;
}

.img-caption.right {
    text-align: right;
}

/* Figure element styling for semantic captions */
figure {
    margin: 2.5rem 0;
    text-align: center;
    background-color: white;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

figure img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

figcaption {
    font-size: 0.9rem;
    color: #38516b;
    font-style: italic;
    margin-top: 0.5rem;
    line-height: 1.4;
    padding: 0 1rem;
}

/* Caption variations for different image types */
.figure-img-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 350px;
    height: auto;
    border-radius: 8px;

}

.figure-img-right + .img-caption {
    float: right;
    clear: right;
    width: 350px;
    margin: 0.5rem 0 1rem 1.5rem;
    text-align: center;
}

.figure-img-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 350px;
    height: auto;
    border-radius: 8px;

}

.figure-img-left + .img-caption {
    float: left;
    clear: left;
    width: 350px;
    margin: 0.5rem 1.5rem 1rem 0;
    text-align: center;
}

/* Responsive adjustments for text-wrapping images */
@media (max-width: 767.98px) {
    .img-wrap-left,
    .img-wrap-right,
    .img-wrap-small-left,
    .img-wrap-small-right,
    .img-wrap-large-left,
    .img-wrap-large-right,
    .figure-img-left,
    .figure-img-right {
        float: none;
        display: block;
        margin: 1rem auto;
        max-width: 100%;
    }
    
    .figure-img-left + .img-caption,
    .figure-img-right + .img-caption {
        float: none;
        width: 100%;
        margin: 0.5rem auto 1rem auto;
        text-align: center;
    }
    
    /* Reduce figure padding on mobile */
    figure {
        padding: 1rem;
    }
}

/* Visual Design Gallery */
.visual-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e8e8e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.gallery-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    text-align: center;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-description {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 0 2rem;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* Gallery Responsive Design */
@media (max-width: 1400px) {
    .visual-gallery {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .visual-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .visual-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .visual-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-thumbnail {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .visual-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbnail {
        height: 200px;
    }
}

/* Return to Top Link */
.return-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary-teal);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 141, 0.2);
    border: 2px solid var(--primary-teal);
}

.return-to-top:hover {
    background-color: var(--accent-pink);
    border-color: var(--accent-pink);
    color: var(--white) !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 86, 111, 0.3);
}

.return-to-top i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.return-to-top:hover i {
    transform: translateY(-2px);
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 3rem;
        line-height: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.5rem;
    }
    quote {
        font-size: 1rem;
    }
    
    .full-width-hero {
        min-height: 300px;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .full-width-hero-content {
        padding: 1.5rem;
        margin: 2rem 2rem;
        font-size: 1rem;
    }    