/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

:root {
    --color-ink: #1e2433;
    --color-muted: #5e687c;
    --color-accent: #6881a6;
    --color-accent-strong: #4b6287;
    --color-surface: #ffffff;
    --color-surface-muted: #f4f6fb;
    --shadow-soft: 0 15px 40px rgba(18, 33, 56, 0.08);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-ink);
    background-color: var(--color-surface-muted);
    line-height: 1.6;
}

main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.lead {
    font-size: 1.8rem;
    font-weight: 300;
    margin-top: 2em;
    margin-bottom: 2em;
    font-family: 'Open Sans', sans-serif;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    background-image: url('img/done.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(16, 23, 38, 0.9), rgba(86, 111, 151, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2.5rem;
    border-radius: 24px;
    background: rgba(14, 24, 41, 0.55);
    backdrop-filter: blur(4px);
    box-shadow: 0 25px 60px rgba(2, 8, 20, 0.35);
}

.hero-logo {
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.hero-content .lead {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.hero-eyebrow {
    letter-spacing: 0.35em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-cta .btn {
    min-width: 230px;
    border-width: 2px;
}

/* Navigation Links */
.nav-link {
    opacity: 0.85;
    transition: opacity 0.2s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    opacity: 1;
}

.bg-body {
    background: radial-gradient(circle at top, #4b5871, #1c2231 60%) !important;
}

/* Step 1: Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

header, h3 {
    font-family: 'Montserrat', sans-serif;
}

header p {
    color: #fff;
}

.brand-logo-link {
    display: flex;
    align-items: center;
}

.brand-logo {
    max-height: 42px;
    width: auto;
}

.brand-logo--header {
    filter: brightness(0) invert(1);
}

.carousel-caption{
    background-color: rgba(255, 255, 255, 0.65);
    border-radius: 15px;
}

/* For lightbox images with captions */
.lightbox-img-container {
    position: relative;
    display: block;
}

.lightbox-img-container .carousel-caption {
    position: absolute;
    right: 15%;
    bottom: 1.25rem;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    text-align: center;
}

.contact-button {
    color: #fff;
    background-color: var(--color-accent);
    border-color: var(--color-accent-strong);
    border: 2px solid var(--color-accent-strong);
    font-size: 1.2rem;
    box-shadow: 0 15px 35px rgba(73, 96, 132, 0.35);
}

.contact-button:focus {
    color: #fff;
    background-color: var(--color-accent-strong);
    border: 2px solid var(--color-accent-strong);
}

.contact-button:hover {
    color: #fff;
    background-color: #7f9bc4;
    border: 2px solid #7f9bc4;
}

.carousel-control-next-icon, .carousel-control-prev-icon{
    width: 4rem;
    height: 4rem;
}


.otto {
    color: white;
    text-shadow: 0 1px 0 #ccc,
    0 2px 0 #c9c9c9,
    0 3px 0 #bbb,
    0 4px 0 #b9b9b9,
    0 5px 0 #aaa,
    0 6px 1px rgba(0,0,0,.1),
    0 0 5px rgba(0,0,0,.1),
    0 1px 3px rgba(0,0,0,.3),
    0 3px 5px rgba(0,0,0,.2),
    0 5px 10px rgba(0,0,0,.25),
    0 10px 10px rgba(0,0,0,.2),
    0 20px 20px rgba(0,0,0,.15);
}

.simple {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #000000;
}

.close {
    color: #000000;
    text-shadow:
            0 1px #808d93,
            -1px 0 #cdd2d5,
            -1px 2px #808d93,
            -2px 1px #cdd2d5,
            -2px 3px #808d93,
            -3px 2px #cdd2d5,
            -3px 4px #808d93,
            -4px 3px #cdd2d5,
            -4px 5px #808d93,
            -5px 4px #cdd2d5,
            -5px 6px #808d93,
            -6px 5px #cdd2d5,
            -6px 7px #808d93,
            -7px 6px #cdd2d5,
            -7px 8px #808d93,
            -8px 7px #cdd2d5;
}

/* Step 5: Image Hover Effects */
.lightbox-img-container img,
.carousel-item img {
    transition: transform 0.3s ease;
}

.lightbox-img-container:hover img,
.carousel-item a:hover img {
    transform: scale(1.02);
}

/* Step 6: Alternate Section Backgrounds */
.section-light {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
}

.section-dark {
    background-color: #e9ecef;
    padding: 2rem 0;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
}

.section-offset {
    background: var(--color-surface);
    border-radius: 32px;
    padding: 3rem 3rem 2.5rem;
    box-shadow: var(--shadow-soft);
}

.section-eyebrow {
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-muted);
    max-width: 720px;
    margin: 0 auto;
}

/* Step 7: Section Heading Underlines */
.section-heading {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 1.5rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #6881a6;
}

/* Step 8: Thumbnail Grid */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.value-card,
.info-card,
.contact-card,
.project-card,
.case-card {
    background: var(--color-surface);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(104, 129, 166, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover,
.info-card:hover,
.contact-card:hover,
.project-card:hover,
.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(16, 35, 67, 0.12);
}

.value-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(104, 129, 166, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-accent-strong);
    margin-bottom: 1rem;
}

.value-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.value-text {
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.value-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-strong);
}

.project-media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.project-media img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.status-pill {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(14, 24, 41, 0.85);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-pill--planning {
    background: rgba(94, 162, 255, 0.85);
}

.chip {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(104, 129, 166, 0.3);
    color: var(--color-accent-strong);
    background: rgba(104, 129, 166, 0.12);
}

.chip-status {
    background: rgba(108, 196, 161, 0.18);
    border-color: rgba(108, 196, 161, 0.35);
    color: #1f5e4b;
}

.project-meta {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-bottom: 0.4rem;
}

.project-section .section-heading::after {
    left: 50%;
}

.project-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
}

.project-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.35rem;
    color: var(--color-muted);
}

.project-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-strong);
    position: absolute;
    left: 0;
    top: 0.55rem;
    transform: translateY(-50%);
}

.project-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.project-tag {
    font-size: 0.85rem;
    color: var(--color-accent-strong);
    font-weight: 600;
}

.link-arrow {
    text-decoration: none;
    color: var(--color-accent-strong);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.link-arrow::after {
    content: '↗';
    font-size: 0.9rem;
}

.thumbnail-grid .thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.thumbnail-grid .thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s;
}

.thumbnail-grid .thumb:hover img {
    transform: scale(1.05);
}

/* Step 9: Improved Footer */
.footer-dark {
    background: radial-gradient(circle at top, #4b5871, #1c2231 60%);
    color: #fff;
}

.footer-dark h5 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-dark a {
    color: #ccc;
    text-decoration: none;
}

.footer-dark a:hover {
    color: #fff;
}

.footer-dark hr {
    border-color: rgba(255,255,255,0.2);
}

.footer-chips {
    gap: 0.5rem;
}

.footer-chips span {
    background: rgba(255,255,255,0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-links a {
    color: #d7deed;
}

.footer-links a:hover {
    color: #fff;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #cfd6e8;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.social-links a:hover {
    background: rgba(255,255,255,0.15);
}

/* Contact Icons */
.contact-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    color: #6881a6;
}

/* Contact Card visible */
.contact-card {
    padding: 2.5rem;
    text-align: center;
}

.info-card {
    padding: 2.5rem;
}

.contact-layout .btn-outline-primary {
    border-color: var(--color-accent-strong);
    color: var(--color-accent-strong);
}

.contact-layout .btn-outline-primary:hover {
    background: var(--color-accent-strong);
    color: #fff;
}

.kpi-chip {
    background: rgba(104, 129, 166, 0.15);
    color: var(--color-accent-strong);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-meta {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.5rem;
    margin-top: auto;
    justify-content: center;
}

.meta-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.1rem;
}

.meta-value {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.contact-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    color: var(--color-ink);
}

.contact-checklist i {
    color: var(--color-accent-strong);
    margin-top: 0.2rem;
}

.eyebrow {
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    color: var(--color-muted);
}

.project-legend {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-section {
    background: var(--color-surface);
    border-radius: 32px;
    padding: 3rem 3rem 2.5rem;
    box-shadow: var(--shadow-soft);
    margin-top: 2rem;
}

.thumb-grid-wrap {
    background: var(--color-surface);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: inset 0 1px 0 rgba(104, 129, 166, 0.08);
}

.case-stats li {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.case-stats span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent-strong);
}

/* Thumbnail toggle - show first 12 only */
.thumbnail-grid .thumb:nth-child(n+13) {
    display: none;
}

.thumbnail-grid.show-all .thumb {
    display: block !important;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-heading {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .lead {
        font-size: 1.2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .hero-section {
        min-height: 60vh;
    }

    .hero-logo {
        max-width: 150px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .thumbnail-grid .thumb img {
        height: 80px;
    }

    .section-offset {
        padding: 2rem 1.5rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .project-media img {
        height: 220px;
    }

    .portfolio-section {
        padding: 2rem 1.5rem;
    }

    .thumb-grid-wrap {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .lead {
        font-size: 1rem;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem !important;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero-section {
        min-height: 50vh;
    }

    .hero-logo {
        max-width: 120px;
    }

    .contact-button {
        font-size: 1rem !important;
    }

    .hero-badges span {
        width: 100%;
        justify-content: center;
    }
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #3a4456 0%, #1e2433 100%);
    color: #fff;
}

.stat-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.15);
}

.stat-icon {
    font-size: 2.5rem;
    color: #8ea2c1;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }

    .stat-icon {
        font-size: 2rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #6881a6;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #8ea2c1;
    transform: translateY(-3px);
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #6881a6;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Improved Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(66, 75, 91, 0.7);
    border-radius: 50%;
    padding: 1.5rem;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(66, 75, 91, 0.9);
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.carousel-wrapper {
    background: var(--color-surface);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(104, 129, 166, 0.08);
}
