/* =========================================================
   GLOBAL
========================================================= */

:root {
    --black: #111111;
    --dark: #181818;
    --white: #ffffff;
    --off-white: #f7f7f5;
    --light: #eeeeeb;
    --muted: #707070;
    --border: #deded9;
    --accent: #d9ff3f;
    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 78px;

    background: var(--white);
    color: var(--black);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.7;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--black);
    color: var(--white);
}


/* =========================================================
   NAVBAR
========================================================= */

.site-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    min-height: 78px;

    padding: 0;

    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);

    z-index: 1050;
}

.site-navbar .container {
    min-height: 78px;

    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    flex-direction: column;

    line-height: 1.05;

    margin-right: auto;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-tech {
    margin-top: 4px;

    color: var(--muted);

    font-size: 0.65rem;
    font-weight: 600;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 8px 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.25em;
    height: 1.25em;
}

.nav-link {
    margin-left: 20px;

    color: #555 !important;

    font-size: 0.9rem;
    font-weight: 600;

    transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--black) !important;
}

.nav-cta {
    padding: 11px 20px;

    border-radius: 50px;

    font-size: 0.85rem;
    font-weight: 600;
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    position: relative;

    min-height: calc(100vh - 78px);

    display: flex;
    align-items: center;

    padding: 80px 0;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(217, 255, 63, 0.16),
            transparent 28%
        ),
        var(--off-white);

    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .row {
    position: relative;
    z-index: 2;
}

.hero-title {
    max-width: 850px;

    margin: 0 0 20px;

    font-size: clamp(3rem, 6vw, 6.4rem);

    font-weight: 800;

    line-height: 0.98;

    letter-spacing: -0.065em;
}

.hero-subtitle {
    max-width: 700px;

    margin: 0 0 25px;

    font-size: clamp(1.2rem, 2vw, 1.7rem);

    font-weight: 600;

    line-height: 1.3;

    letter-spacing: -0.025em;
}

.hero-description {
    max-width: 650px;

    margin: 0 0 32px;

    color: #5f5f5f;

    font-size: 1.12rem;

    line-height: 1.8;
}

.section-label {
    margin-bottom: 20px;

    color: #777;

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.hero-actions .btn {
    border-radius: 50px;

    padding: 14px 24px;

    font-size: 0.9rem;

    font-weight: 700;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-image-wrapper {
    position: relative;

    width: min(100%, 450px);

    margin: 0 auto;

    isolation: isolate;
}

.hero-profile-image {
    position: relative;

    width: 100%;
    height: auto;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    background: #deded9;

    border-radius: 4px;

    z-index: 2;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.10);
}

.hero-image-wrapper::after {
    content: "";

    position: absolute;

    top: 20px;
    right: -20px;

    width: 100%;
    height: 100%;

    border: 2px solid var(--black);

    z-index: 1;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section-padding {
    padding: 120px 0;
}

.section-title {
    max-width: 650px;

    margin: 0;

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.055em;
}

.section-title span {
    color: #888;
}

.section-description {
    max-width: 500px;

    margin-top: 25px;

    color: var(--muted);

    font-size: 1rem;
}

.section-heading-row {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;
}

.text-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding-bottom: 5px;

    border-bottom: 1px solid var(--black);

    font-size: 0.9rem;

    font-weight: 700;

    transition: var(--transition);
}

.text-link:hover {
    gap: 16px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    background: var(--white);
}

.about-content {
    max-width: 680px;

    color: #666;

    font-size: 1rem;
}

.about-lead {
    margin-bottom: 25px;

    color: var(--black);

    font-size: 1.45rem;

    line-height: 1.5;
}

.about-content p {
    margin-bottom: 20px;
}


/* =========================================================
   SERVICES
========================================================= */

.services-section {
    background: var(--off-white);
}

.service-card {
    position: relative;

    height: 100%;

    min-height: 340px;

    padding: 35px;

    background: var(--white);

    border: 1px solid var(--border);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 45px;

    background: var(--black);

    color: var(--white);

    border-radius: 50%;

    font-size: 1.2rem;
}

.service-card h3 {
    margin-bottom: 15px;

    font-size: 1.35rem;

    font-weight: 750;

    letter-spacing: -0.03em;
}

.service-card p {
    max-width: 350px;

    margin: 0 0 25px;

    color: var(--muted);

    font-size: 0.9rem;
}

.service-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-size: 0.85rem;

    font-weight: 700;

    border-bottom: 1px solid var(--border);

    padding-bottom: 4px;
}

.service-link:hover {
    gap: 12px;
}

.empty-state {
    padding: 60px 30px;

    text-align: center;

    background: var(--white);

    border: 1px dashed var(--border);

    color: var(--muted);
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-section {
    background: var(--white);
}

.project-card {
    height: 100%;

    overflow: hidden;

    background: var(--off-white);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.project-image {
    overflow: hidden;

    aspect-ratio: 16 / 10;

    background: #deded9;
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #999;

    font-size: 3rem;
}

.project-info {
    padding: 28px;
}

.project-category {
    margin-bottom: 12px;

    color: #777;

    font-size: 0.7rem;

    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.project-info h3 {
    margin-bottom: 10px;

    font-size: 1.35rem;

    font-weight: 750;

    letter-spacing: -0.03em;
}

.project-info p {
    margin: 0;

    color: var(--muted);

    font-size: 0.88rem;
}

.project-link {
    flex: 0 0 auto;

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    transition: var(--transition);
}

.project-link:hover {
    background: var(--black);

    color: var(--white);
}

.empty-projects {
    padding: 70px 30px;

    text-align: center;

    background: var(--off-white);

    border: 1px dashed var(--border);
}

.empty-projects i {
    display: block;

    margin-bottom: 20px;

    font-size: 2.5rem;

    color: #aaa;
}

.empty-projects h3 {
    font-size: 1.2rem;
}

.empty-projects p {
    margin: 0;

    color: var(--muted);
}


/* =========================================================
   CREDENTIALS
========================================================= */

.credentials-section {
    background: var(--off-white);
}

.credentials-list {
    border-top: 1px solid var(--border);
}

.credential-item {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 25px 0;

    border-bottom: 1px solid var(--border);
}

.credential-icon {
    flex: 0 0 auto;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--black);

    color: var(--white);

    border-radius: 50%;
}

.credential-content {
    flex: 1;
    min-width: 0;
}

.credential-content span {
    display: block;

    margin-bottom: 4px;

    color: #888;

    font-size: 0.68rem;

    font-weight: 800;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.credential-content h3 {
    margin: 0;

    font-size: 1rem;

    font-weight: 750;
}

.credential-content p {
    margin: 3px 0 0;

    color: var(--muted);

    font-size: 0.82rem;
}

.credential-description {
    margin-top: 10px !important;
}

.credential-action {
    flex: 0 0 auto;
}

.credential-action a {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    transition: var(--transition);
}

.credential-action a:hover {
    background: var(--black);

    color: var(--white);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    background: var(--white);
}

.contact-details {
    margin-top: 40px;
}

.contact-detail {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}

.contact-detail > i {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--black);

    color: var(--white);

    border-radius: 50%;
}

.contact-detail small {
    display: block;

    color: #888;

    font-size: 0.7rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.contact-detail a {
    font-weight: 600;
}

.contact-form-card {
    padding: 40px;

    background: var(--off-white);

    border: 1px solid var(--border);
}

.contact-form-card h3 {
    font-size: 1.5rem;

    font-weight: 750;
}

.contact-form-card .form-label {
    font-size: 0.82rem;

    font-weight: 700;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    min-height: 50px;

    border-color: var(--border);

    border-radius: 4px;

    box-shadow: none;
}

.contact-form-card textarea.form-control {
    min-height: 150px;

    resize: vertical;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--black);

    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}


/* =========================================================
   TECHNOLOGIES
========================================================= */

.tech-section {
    padding: 30px 0;

    background: var(--black);

    color: var(--white);
}

.tech-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.tech-inner > span {
    flex: 0 0 auto;

    color: #888;

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.tech-list {
    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 30px;
}

.tech-list span {
    font-size: 0.9rem;

    font-weight: 700;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 100px 0;
}

.cta-box {
    position: relative;

    overflow: hidden;

    padding: 70px;

    background: var(--black);

    color: var(--white);
}

.cta-box::after {
    content: "";

    position: absolute;

    right: -100px;
    bottom: -180px;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    background: var(--accent);

    pointer-events: none;
}

.cta-box .row {
    position: relative;

    z-index: 2;
}

.cta-box .section-label {
    color: #999;
}

.cta-box h2 {
    max-width: 700px;

    margin-bottom: 20px;

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.055em;
}

.cta-box h2 span {
    color: #777;
}

.cta-box p {
    max-width: 600px;

    margin: 0;

    color: #aaa;

    font-size: 1rem;
}

.cta-button {
    position: relative;

    z-index: 3;

    padding: 15px 25px;

    border-radius: 50px;

    color: var(--black);

    font-size: 0.9rem;

    font-weight: 750;
}

.cta-button i {
    margin-left: 8px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 70px 0 25px;

    background: var(--off-white);

    border-top: 1px solid var(--border);
}

.footer-brand {
    display: inline-block;

    margin-bottom: 10px;

    font-size: 1.2rem;

    font-weight: 800;

    letter-spacing: -0.03em;
}

.site-footer p {
    margin: 0;

    color: var(--muted);

    font-size: 0.85rem;
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 25px;
}

.footer-links a {
    color: #666;

    font-size: 0.82rem;

    font-weight: 600;

    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--black);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin-top: 60px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    color: #888;

    font-size: 0.72rem;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .site-navbar {
        min-height: 70px;
    }

    .site-navbar .container {
        min-height: 70px;
    }

    .navbar-collapse {
        padding: 20px 0;

        background: rgba(255, 255, 255, 0.98);
    }

    .navbar-nav {
        align-items: flex-start !important;
    }

    .nav-link {
        margin: 5px 0;

        padding-left: 0 !important;
    }

    .nav-cta {
        display: inline-block;

        margin-top: 10px;
    }

    .hero-section {
        min-height: auto;

        padding: 80px 0;
    }

    .hero-image-wrapper {
        width: min(100%, 420px);

        margin-top: 20px;
    }

    .section-heading-row {
        display: block;
    }

    .section-heading-row > .text-link {
        margin-top: 25px;
    }

    .tech-inner {
        display: block;
    }

    .tech-list {
        justify-content: flex-start;

        margin-top: 20px;
    }

    .footer-links {
        justify-content: flex-start;

        margin-top: 20px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    html {
        scroll-padding-top: 80px;
    }

    body {
        padding-top: 70px;

        overflow-x: hidden;
    }

    .site-navbar {
        min-height: 70px;
    }

    .site-navbar .container {
        min-height: 70px;
    }

    .navbar-collapse {
        max-height: calc(100vh - 70px);

        overflow-y: auto;

        padding: 15px 0 20px;
    }

    .hero-section {
        min-height: auto;

        display: block;

        padding: 65px 0 80px;

        overflow: hidden;
    }

    .hero-title {
        font-size: clamp(2.7rem, 13vw, 4.5rem);

        line-height: 0.98;
    }

    .hero-subtitle {
        margin-top: 20px;

        font-size: 1.15rem;

        line-height: 1.35;
    }

    .hero-description {
        margin-top: 20px;

        font-size: 1rem;

        line-height: 1.7;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-image-wrapper {
        width: min(100%, 360px);

        margin: 30px auto 0;
    }

    .hero-image-wrapper::after {
        top: 12px;
        right: -12px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .section-title {
        font-size: clamp(2.4rem, 11vw, 4rem);
    }

    .service-card {
        min-height: 300px;
    }

    .credential-item {
        align-items: flex-start;
    }

  

    .contact-form-card {
        padding: 30px 22px;
    }

    .cta-section {
        padding: 70px 0;
    }

    .cta-box {
        padding: 45px 30px;
    }

    .cta-button {
        margin-top: 10px;
    }

    .tech-list {
        gap: 15px 20px;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;

        margin-bottom: 7px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .hero-section {
        padding-top: 50px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-image-wrapper {
        width: calc(100% - 15px);

        margin-top: 25px;
    }

    .hero-image-wrapper::after {
        right: -8px;
        top: 8px;
    }

    .service-card {
        padding: 28px;
    }

    .project-info {
        padding: 22px;
    }

    .credential-item {
        gap: 14px;
    }

    .credential-icon {
        width: 45px;
        height: 45px;
    }

    .contact-form-card {
        padding: 25px 18px;
    }

    .cta-box {
        padding: 40px 22px;
    }
}

/* =========================================================
   CREDENTIALS - MOBILE FIX
========================================================= */

.credential-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.credential-content {
    flex: 1 1 auto;
    min-width: 0;
}

.credential-action {
    display: flex !important;
    flex: 0 0 44px !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.credential-action a {
    width: 44px;
    height: 44px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    background: var(--white);
    color: var(--black);

    border: 1px solid var(--border);
    border-radius: 50%;

    visibility: visible !important;
    opacity: 1 !important;
}

.credential-action a:hover {
    background: var(--black);
    color: var(--white);
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575px) {

    .credential-item {
        display: flex !important;
        align-items: flex-start !important;
        gap: 10px;
        padding: 20px 0;
    }

    .credential-icon {
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
    }

    .credential-content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow-wrap: anywhere;
    }

    .credential-content h3 {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .credential-content p {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .credential-action {
        display: flex !important;
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 40px !important;
        margin-left: auto;
    }

    .credential-action a {
        display: flex !important;
        width: 40px !important;
        height: 40px !important;
    }

}

.credential-view-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--black);
    font-size: 1rem;
    font-weight: 750;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.credential-view-link:hover {
    color: #666;
}

.credential-view-link i {
    font-size: 0.8rem;
}

/* =========================================================
   MOBILE NAVBAR
========================================================= */

@media (max-width: 991.98px) {

    .site-navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;

        height: auto !important;
        min-height: 78px;

        padding: 12px 0 !important;

        background: #ffffff !important;

        border-bottom: 1px solid #deded9;

        z-index: 10000 !important;

        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .site-navbar .container {
        position: relative;
        height: auto;
    }

    /* MOBILE TOGGLE */

    .site-navbar .navbar-toggler {
        border: 1px solid #222 !important;

        padding: 7px 10px;

        background: #ffffff !important;

        box-shadow: none !important;

        outline: none !important;
    }

    .site-navbar .navbar-toggler:focus {
        box-shadow: none !important;
    }

    /* Make hamburger visible */

    .site-navbar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(17,17,17,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    /* DROPDOWN */

    .site-navbar .navbar-collapse {
        display: block;

        width: 100%;

        margin-top: 12px;

        padding: 15px 20px 20px;

        background: #ffffff !important;

        border: 1px solid #deded9;

        border-radius: 10px;

        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);

        position: relative;

        z-index: 10001;

    }

    /* Hide collapsed menu */

    .site-navbar .navbar-collapse:not(.show) {
        display: none;
    }

    /* MENU */

    .site-navbar .navbar-nav {
        width: 100%;

        margin: 0 !important;

        padding: 0;

        background: #ffffff !important;
    }

    .site-navbar .nav-item {
        width: 100%;

        margin: 0 !important;

        background: #ffffff !important;
    }

    .site-navbar .nav-link {
        display: block;

        width: 100%;

        margin: 0 !important;

        padding: 13px 5px;

        background: #ffffff !important;

        color: #555555 !important;

        font-size: 0.95rem;

        border-bottom: 1px solid #eeeeeb;
    }

    .site-navbar .nav-link:hover {
        color: #111111 !important;
        background: #ffffff !important;
    }

    /* LET'S TALK */

    .site-navbar .nav-item:last-child {
        padding-top: 12px;

        background: #ffffff !important;
    }

    .site-navbar .nav-cta {
        display: block;

        width: 100%;

        margin: 0 !important;

        text-align: center;

        background: #111111 !important;

        color: #ffffff !important;
    }

}