:root {
    --brand-primary: #58629C;
    --brand-accent: #405DB4;
    --brand-surface: #F4F5F9;
    --text-primary: #171A2B;
    --text-secondary: #667085;
    --white: #FFFFFF;
    --border-color: rgba(88, 98, 156, 0.16);
    --brand-gradient: linear-gradient(135deg, #405DB4 0%, #58629C 100%);
    --shadow-soft: 0 18px 45px rgba(23, 26, 43, 0.08);
    --shadow-subtle: 0 10px 26px rgba(23, 26, 43, 0.06);
    --shadow-card: 14px 14px 0 rgba(88, 98, 156, 0.22);
    --shadow-card-hover: 17px 17px 0 rgba(88, 98, 156, 0.28);
    --radius-lg: 22px;
    --radius-md: 16px;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.7;
}

body,
button,
input,
textarea {
    letter-spacing: 0;
}

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

a {
    color: var(--brand-accent);
}

a:hover {
    color: var(--brand-primary);
}

.bg-surface {
    background-color: var(--brand-surface) !important;
}

:focus-visible {
    outline: 3px solid rgba(64, 93, 180, 0.35);
    outline-offset: 3px;
}

.site-navbar {
    padding: 0.9rem 0;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--brand-primary) !important;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-logo {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.navbar-toggler {
    border-color: var(--border-color);
    border-radius: 12px;
    min-height: 44px;
    min-width: 44px;
}

.site-navbar .nav-link {
    color: var(--text-secondary);
    font-weight: 700;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    transition: color 180ms ease, background-color 180ms ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus-visible,
.site-navbar .nav-link.active {
    color: var(--brand-accent);
}

.hero-section {
    padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.hero-copy {
    max-width: 640px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--brand-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--brand-gradient);
    border-radius: 999px;
}

.hero-copy h1,
.section-heading {
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.08;
}

.hero-copy h1 {
    max-width: 620px;
    margin-bottom: 1.2rem;
    font-size: clamp(2.35rem, 5.5vw, 4.9rem);
}

.hero-description,
.section-description {
    max-width: 720px;
    color: var(--text-secondary);
    font-size: 1.08rem;
}

.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.78rem 1.25rem;
    border-radius: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.outline-button:active {
    transform: translateY(0);
}

.outline-button {
    color: var(--brand-accent);
    background: var(--white);
    border-color: var(--border-color);
}

.outline-button:hover,
.outline-button:focus-visible {
    color: var(--brand-primary);
    border-color: rgba(64, 93, 180, 0.4);
    background: rgba(64, 93, 180, 0.06);
    transform: translateY(-2px);
}

.outline-button-light {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
}

.outline-button-light:hover,
.outline-button-light:focus-visible {
    color: var(--brand-accent);
    background: var(--white);
    border-color: var(--white);
}

.hero-logo-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 430px);
    margin: 0 auto;
}

.hero-logo-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    padding-top: 2rem;
}

.hero-logo {
    position: relative;
    z-index: 1;
    width: min(70%, 300px);
    height: auto;
}

.hero-shape {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(88, 98, 156, 0.14);
    z-index: 2;
}

.hero-shape-one {
    width: 70px;
    height: 70px;
    top: 13%;
    right: 13%;
}

.hero-shape-two {
    width: 44px;
    height: 44px;
    bottom: 18%;
    left: 15%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.54rem;
    color: var(--text-primary);
    background: var(--white);
    border: 1.5px solid var(--text-primary);
    border-radius: 3px;
    box-shadow: 4px 4px 0 rgba(64, 93, 180, 0.2);
    font-family: var(--bs-font-monospace);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.hero-badge-top {
    position: absolute;
    top: 0.65rem;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%) rotate(-6deg);
}

.hero-badge-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    width: min(100%, 360px);
    margin-top: 0.8rem;
}

.hero-badge-row .hero-badge:first-child {
    transform: rotate(-4deg);
}

.hero-badge-row .hero-badge:last-child {
    transform: rotate(5deg);
}

.tech-strip-section {
    padding: 0;
    background: var(--text-primary);
}

.tech-strip {
    width: 100%;
    padding: 0.55rem clamp(1rem, 4vw, 3rem);
    color: var(--white);
    background: var(--text-primary);
    border-top: 1px solid rgba(88, 98, 156, 0.42);
    border-bottom: 1px solid rgba(88, 98, 156, 0.42);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: 0 10px 0 rgba(88, 98, 156, 0.18);
}

.tech-strip-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.1rem;
    width: 100%;
}

.tech-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 38px;
    color: var(--white);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tech-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 30px;
    padding: 0.34rem;
    background: var(--brand-surface);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.tech-logo-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-strip-separator {
    color: var(--brand-surface);
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.8;
}

.section-block,
.page-section {
    padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.profile-section {
    background: var(--brand-primary);
}

.profile-section .about-card {
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 14px 14px 0 rgba(244, 245, 249, 0.42);
}

.profile-section .about-card:hover {
    box-shadow: 17px 17px 0 rgba(244, 245, 249, 0.5);
}

.page-header {
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.page-header .eyebrow {
    justify-content: center;
}

.section-heading {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-description {
    margin: 0 auto;
}

.content-card,
.project-card {
    border: 1px solid rgba(88, 98, 156, 0.42);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.content-card:hover,
.project-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(64, 93, 180, 0.58);
}

.about-card {
    padding: clamp(1.6rem, 4vw, 3rem);
}

.about-card p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

.about-highlight {
    color: var(--text-primary) !important;
    font-weight: 700;
}

.timeline {
    position: relative;
    display: grid;
    gap: 1rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 1.35rem;
    bottom: 1.35rem;
    left: 1rem;
    width: 2px;
    background: rgba(88, 98, 156, 0.18);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 1.5rem;
    padding: clamp(1.3rem, 3vw, 2rem);
    margin-left: 2.1rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 1.8rem;
    left: -1.48rem;
    width: 14px;
    height: 14px;
    background: var(--brand-gradient);
    border: 3px solid var(--white);
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(64, 93, 180, 0.14);
}

.timeline-period {
    align-self: start;
    display: inline-flex;
    width: fit-content;
    color: var(--brand-accent);
    background: rgba(64, 93, 180, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    font-weight: 800;
    line-height: 1.25;
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 800;
}

.timeline-organization {
    margin-bottom: 0.75rem;
    color: var(--brand-primary);
    font-weight: 700;
}

.timeline-content p:last-child {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.technology-tag {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    color: var(--text-primary);
    background: var(--brand-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
}

.projects-list {
    display: grid;
    gap: 1.5rem;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    overflow: hidden;
}

.project-info {
    padding: clamp(1.4rem, 3.5vw, 2.25rem);
}

.project-type {
    margin-bottom: 0.55rem;
    color: var(--brand-accent);
    font-size: 0.9rem;
    font-weight: 800;
}

.project-info h2 {
    margin-bottom: 0.85rem;
    color: var(--text-primary);
    font-size: clamp(1.35rem, 2.7vw, 2rem);
    font-weight: 800;
}

.project-info p {
    color: var(--text-secondary);
}

.project-media {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: clamp(1.2rem, 3vw, 2rem);
    background: var(--brand-surface);
    border-left: 1px solid var(--border-color);
}

.project-media img {
    width: 100%;
    max-width: 320px;
    max-height: 210px;
    object-fit: contain;
}

.project-cta {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    color: var(--white);
    background: var(--brand-primary);
}

.project-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.project-cta h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 800;
}

.project-cta p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.contact-options-section {
    background: var(--brand-surface);
}

.contact-card-direct {
    padding: clamp(1.5rem, 4vw, 2.75rem);
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.6rem;
    margin-top: 2rem;
}

.contact-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 100%;
    padding: 0 0 0.35rem;
    color: var(--brand-accent);
    border-bottom: 2px solid var(--brand-accent);
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.contact-action-link:hover,
.contact-action-link:focus-visible {
    color: var(--brand-accent);
    border-color: var(--brand-accent);
    transform: translateY(-2px);
}

.contact-action-link i {
    flex: 0 0 auto;
    font-size: 0.9rem;
}

.contact-whatsapp-link {
    color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.site-footer {
    padding: 1.35rem 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.footer-logo {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current="page"] {
    color: var(--brand-accent);
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        padding-top: 0.8rem;
    }

    .site-navbar .nav-link {
        padding-left: 0.75rem;
    }

    .hero-copy {
        margin: 0 auto;
        text-align: center;
    }

    .hero-copy .eyebrow,
    .page-header .eyebrow {
        justify-content: center;
    }

    .hero-logo-wrap {
        width: min(100%, 360px);
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-media {
        min-height: 220px;
        border-left: 0;
        border-top: 1px solid var(--border-color);
    }

    .project-cta-content,
    .footer-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 1199.98px) {
    .tech-strip-track {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.75rem 1rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tech-strip-track::-webkit-scrollbar {
        display: none;
    }

    .tech-strip-item {
        flex: 0 0 auto;
    }
}

@media (max-width: 767.98px) {
    .timeline::before {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-left: 0;
    }

    .timeline-item::before {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 1.25rem;
    }

    .outline-button {
        width: 100%;
    }

    .contact-action-link {
        width: 100%;
        justify-content: space-between;
    }

    .hero-logo-wrap {
        width: min(100%, 300px);
    }

    .hero-logo-stage {
        padding-top: 2.25rem;
    }

    .hero-badge-top {
        top: 0.35rem;
        max-width: calc(100% - 1rem);
    }

    .hero-badge-row {
        width: 100%;
        gap: 0.5rem;
        margin-top: 0.65rem;
    }

    .hero-badge {
        max-width: 100%;
        white-space: normal;
        text-align: center;
        font-size: 0.62rem;
    }

    .content-card,
    .project-card {
        border-radius: var(--radius-md);
    }

    .project-media {
        min-height: 190px;
    }

    .project-media img {
        max-height: 170px;
    }

    .footer-layout {
        text-align: left;
    }
}

@media (max-width: 359.98px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .hero-copy h1 {
        font-size: 2.15rem;
    }

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

    .technology-tag {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
