:root {
    --primary: #1db0aa;
    --primary-dark: #0d6f79;
    --primary-foreground: #ffffff;
    --secondary: #12343b;
    --background: #f6f7f3;
    --foreground: #112127;
    --muted: #edf2ef;
    --muted-foreground: #5f6f74;
    --card: #ffffff;
    --border: #d9e2de;
    --dark-surface: #0d171b;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html.nav-is-open,
body.nav-is-open {
    overflow: hidden;
    overscroll-behavior: none;
}

body.nav-is-open {
    touch-action: none;
}

body.nav-is-open #navbarNav,
body.nav-is-open #navbarNav * {
    touch-action: pan-y;
}

main {
    flex: 1 0 auto;
    overflow-x: clip;
}

footer {
    flex-shrink: 0;
}

a,
.btn,
.nav-link,
.card,
#main-header,
.logo {
    transition: all 0.35s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Outfit', sans-serif;
}

.text-primary {
    color: #0b7d86;
    background-image: linear-gradient(135deg, #17a4ab, #33c47d 92%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-secondary {
    color: var(--primary) !important;
}

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

.bg-primary-gradient {
    background-image: linear-gradient(135deg, #139aa1, #2db86f);
}

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

.btn-primary:hover {
    background-color: #14958f;
    border-color: #14958f;
}

.btn-primary-gradient {
    background-image: linear-gradient(135deg, #139aa1, #2db86f);
    color: white;
    border: 0;
}

.btn-primary-gradient:hover {
    background-image: linear-gradient(135deg, #118991, #29a767);
    color: white;
}

.bg-primary-10 {
    background-color: rgba(29, 176, 170, 0.12);
}

.bg-primary-20 {
    background-color: rgba(29, 176, 170, 0.18);
}

.border-primary-30 {
    border-color: rgba(29, 176, 170, 0.3) !important;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.82);
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.72);
}

.text-white-60 {
    color: rgba(255, 255, 255, 0.62);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.52);
}

.text-white-5 {
    color: rgba(255, 255, 255, 0.08);
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.12);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.border-white-30 {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.section-padding {
    padding: 100px 0;
}

.section-soft {
    background:
        radial-gradient(circle at top right, rgba(29, 176, 170, 0.08), transparent 28%),
        linear-gradient(180deg, #f7f8f5 0%, #eef3ef 100%);
}

.section-dark-grid {
    background:
        radial-gradient(circle at top left, rgba(29, 176, 170, 0.18), transparent 30%),
        linear-gradient(180deg, #0f1b20 0%, #091116 100%);
}

.fw-black {
    font-weight: 800;
}

.leading-tight {
    line-height: 1.1;
}

.tracking-wider {
    letter-spacing: 0.08em;
}

.tracking-widest {
    letter-spacing: 0.16em;
}

.object-cover {
    object-fit: cover;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-n1 {
    z-index: -1;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-md {
    max-width: 28rem;
}

.bg-gradient-to-r {
    background: linear-gradient(to right, rgba(6, 18, 24, 0.92), rgba(13, 41, 47, 0.74), rgba(16, 89, 93, 0.28));
}

.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(6, 18, 24, 0.85), transparent, rgba(7, 31, 37, 0.28));
}

.bg-gradient-to-t-dark {
    background: linear-gradient(to top, rgba(8, 23, 28, 0.82), rgba(8, 23, 28, 0.18), transparent);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.transition-all {
    transition: all 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.hover-translate-y:hover {
    transform: translateY(-8px);
}

.hover-scale:hover {
    transform: scale(1.03);
}

.group:hover .group-hover-scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover-text-primary {
    color: var(--primary) !important;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-transform: lowercase;
}

.logo-dark {
    display: none;
}

.hero-shell {
    max-width: 980px;
}

.hero-badge {
    box-shadow: 0 14px 34px rgba(11, 40, 43, 0.14);
}

.hero-lead {
    font-size: 1rem;
    line-height: 1.55;
}

.hero-copy {
    font-size: 0.92rem;
    line-height: 1.55;
}

.service-summary-copy {
    max-width: 650px;
}

.float-soft-text,
.float-soft-icon {
    animation: float 2.8s ease-in-out infinite;
}

.hero-scroll-indicator {
    bottom: 2rem;
}

.story-card,
.segment-card,
.history-block {
    border: 1px solid rgba(17, 33, 39, 0.06);
}

.story-card {
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
}

.story-card-top {
    padding: 2rem;
    border-bottom: 1px solid rgba(17, 33, 39, 0.08);
}

.story-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(29, 176, 170, 0.12);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.timeline-list {
    padding: 1.5rem 2rem 2rem;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #17a4ab, #33c47d);
}

.timeline-year {
    display: block;
    margin-bottom: 0.35rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--secondary);
}

.timeline-item p {
    margin: 0;
    color: var(--muted-foreground);
}

.service-card {
    background: #fff;
}

.service-image-wrap {
    height: 224px;
}

.segment-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.segment-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 176, 170, 0.16);
    color: #6ae5d0;
    font-size: 1.3rem;
}

.contact-panel {
    position: relative;
    overflow: hidden;
}

.contact-panel::after {
    content: '';
    position: absolute;
    inset: auto -15% -35% auto;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.subpage-hero {
    padding: 160px 0 80px;
    background:
        radial-gradient(circle at top right, rgba(29, 176, 170, 0.14), transparent 28%),
        linear-gradient(180deg, #f6f7f3 0%, #edf3f0 100%);
}

.about-hero-intro {
    max-width: 1120px;
}

.history-flow {
    display: grid;
    gap: 1.25rem;
}

.reveal-on-scroll {
    opacity: 0;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
}

.about-gallery {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.about-gallery-main,
.about-gallery-side {
    min-height: 280px;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(17, 33, 39, 0.1);
}

.about-gallery-side {
    transform: translateY(28px);
}

.services-showcase {
    display: grid;
    gap: 2rem;
}

.service-feature {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 1.75rem;
    background: #fff;
    border: 1px solid rgba(17, 33, 39, 0.06);
    box-shadow: 0 22px 55px rgba(17, 33, 39, 0.07);
}

.service-feature-reverse {
    grid-template-columns: 1fr 1.05fr;
}

.service-feature-reverse .service-feature-media {
    order: 2;
}

.service-feature-reverse .service-feature-content {
    order: 1;
}

.service-feature-media {
    min-height: 360px;
    overflow: hidden;
}

.service-feature-media img {
    transition: transform 0.7s ease;
}

.service-feature:hover .service-feature-media img {
    transform: scale(1.04);
}

.service-feature-content {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-feature-content h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.service-feature-content p {
    color: var(--muted-foreground);
    margin-bottom: 1.35rem;
}

.service-points {
    display: grid;
    gap: 0.9rem;
}

.service-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--secondary);
}

.service-point i {
    color: var(--primary);
    margin-top: 0.15rem;
}

.service-portfolio-copy {
    max-width: 760px;
}

.service-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-portfolio-card {
    height: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 33, 39, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 18px 42px rgba(17, 33, 39, 0.07);
}

.service-portfolio-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.service-portfolio-icon {
    flex: 0 0 auto;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 176, 170, 0.14);
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.service-portfolio-card h3 {
    margin: 0;
    color: var(--secondary);
    font-size: 1.2rem;
    line-height: 1.25;
}

.service-portfolio-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-portfolio-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--muted-foreground);
    line-height: 1.45;
}

.service-portfolio-list i {
    color: var(--primary);
    margin-top: 0.18rem;
}

.about-storyboard {
    display: grid;
    gap: 2rem;
}

.about-story-section {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 33, 39, 0.06);
    border-radius: 2rem;
    padding: 1.4rem;
    box-shadow: 0 18px 45px rgba(17, 33, 39, 0.06);
}

.about-story-section.reverse {
    grid-template-columns: 1fr 1.02fr;
}

.about-story-section.reverse .about-story-media {
    order: 2;
}

.about-story-section.reverse .about-story-content {
    order: 1;
}

.about-story-media {
    min-height: 360px;
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(17, 33, 39, 0.1);
}

.about-story-content {
    padding: 0.6rem 0.6rem 0.6rem 0;
}

.about-story-content h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.about-story-content p {
    color: var(--muted-foreground);
    margin-bottom: 1.3rem;
    line-height: 1.75;
}

.about-story-points {
    display: grid;
    gap: 0.85rem;
}

.about-story-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--secondary);
}

.about-story-point i {
    color: var(--primary);
    margin-top: 0.15rem;
}

.history-block {
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: 0 18px 45px rgba(17, 33, 39, 0.06);
}

.history-block h2 {
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
    color: var(--secondary);
}

.history-block p {
    margin: 0;
    color: var(--muted-foreground);
}

.history-tag {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.85rem;
    background: rgba(18, 52, 59, 0.08);
    border-radius: 999px;
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#main-header.scrolled,
#main-header.nav-open {
    background-color: rgba(246, 247, 243, 0.94) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(17, 33, 39, 0.08);
}

#main-header {
    z-index: 1080;
}

#main-header .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
}

#main-header.scrolled .nav-link,
#main-header.nav-open .nav-link {
    color: var(--foreground) !important;
}

#main-header .nav-link:hover {
    color: var(--primary) !important;
}

#main-header.scrolled .logo-light,
#main-header.nav-open .logo-light {
    display: none;
}

#main-header.scrolled .logo-dark,
#main-header.nav-open .logo-dark {
    display: inline-block;
}

#main-header .btn-primary-gradient {
    box-shadow: 0 12px 26px rgba(13, 111, 121, 0.22);
}

.navbar-toggler:focus,
.btn-close:focus {
    box-shadow: none;
}

.mobile-cta-btn {
    white-space: nowrap;
}

.footer-address {
    max-width: 22rem;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #eef2f1;
}

::-webkit-scrollbar-thumb {
    background: #a7bbb6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7f9791;
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-shell {
        max-width: 100%;
    }

    .subpage-hero {
        padding: 140px 0 70px;
    }

    .vertical-text {
        display: none;
    }

    #main-header .container {
        max-width: 100%;
    }

    .about-gallery {
        grid-template-columns: 1fr;
    }

    .about-gallery-side {
        transform: none;
        min-height: 240px;
    }

    .service-feature,
    .service-feature-reverse {
        grid-template-columns: 1fr;
    }

    .service-feature-reverse .service-feature-media,
    .service-feature-reverse .service-feature-content {
        order: initial;
    }

    .service-feature-media {
        min-height: 280px;
    }

    .service-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-story-section,
    .about-story-section.reverse {
        grid-template-columns: 1fr;
    }

    .about-story-section.reverse .about-story-media,
    .about-story-section.reverse .about-story-content {
        order: initial;
    }

    .about-story-media {
        min-height: 280px;
    }

    .contact-panel,
    .story-card,
    .about-story-section,
    .service-feature {
        border-radius: 1.5rem;
    }

}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 72px 0;
    }

    #navbarNav.offcanvas {
        top: 0;
        bottom: 0;
        width: min(88vw, 360px);
        max-width: 360px;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        background: #ffffff !important;
        color: var(--foreground) !important;
        border-left: 1px solid rgba(17, 33, 39, 0.08);
        box-shadow: -16px 0 42px rgba(17, 33, 39, 0.14);
        overscroll-behavior: contain;
    }

    #navbarNav.offcanvas.show,
    #navbarNav.offcanvas.showing {
        visibility: visible;
    }

    #navbarNav .offcanvas-header {
        padding: 1.2rem 1.2rem 0.8rem;
    }

    #navbarNav .offcanvas-body {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 0.75rem 1.2rem 1.4rem;
        background: #ffffff;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #navbarNav .navbar-nav {
        gap: 0.4rem;
    }

    #navbarNav .nav-link {
        color: var(--foreground) !important;
        padding: 0.8rem 0.2rem;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(17, 33, 39, 0.06);
    }

    #navbarNav .nav-item:last-child .nav-link {
        border-bottom: 0;
    }

    .mobile-cta-wrap,
    .mobile-cta-btn {
        width: 100%;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .display-3 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .display-5 {
        font-size: clamp(1.7rem, 6.3vw, 2.35rem);
    }

    .hero-lead,
    .hero-copy {
        font-size: 0.95rem;
    }

    .story-card-top,
    .timeline-list,
    .history-block {
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }

    .service-feature-content {
        padding: 1.4rem;
    }

    .service-feature-content h2 {
        font-size: 1.55rem;
    }

    .service-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .service-portfolio-card {
        padding: 1.25rem;
    }

    .service-feature-content p,
    .about-story-content p,
    .timeline-item p,
    .footer-address {
        font-size: 0.95rem;
    }

    .about-story-section {
        padding: 1rem;
    }

    .about-story-content {
        padding: 0.2rem;
    }

    .about-story-content h2 {
        font-size: 1.55rem;
    }

    .subpage-hero {
        padding: 128px 0 56px;
    }

    .hero-scroll-indicator {
        bottom: 1.5rem;
    }

    .row.g-4,
    .row.g-5 {
        --bs-gutter-y: 1.25rem;
    }

    footer .row > div {
        text-align: left;
    }
}
