/* =========================================================
   GLOBAL SETTINGS
========================================================= */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Lato", sans-serif;
}

    body > .container-fluid {
        flex: 1;
    }

footer.footer {
    margin-top: auto;
}


/* =========================================================
   FORMS
========================================================= */

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* =========================================================
   MAIN NAVIGATION POSITION
========================================================= */

@media (min-width: 992px) {

    #mainNavbar {
        position: static;
    }

    .tim-main-nav {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}


/* =========================================================
   HOME PAGE - HERO SLIDER
========================================================= */

.hero-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #081C2C;
}

/* Slider container */

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individual images */

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

    .hero-slide.active {
        opacity: 1;
    }

/* Dark overlay for readable text */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 28, 44, 0.38);
    z-index: 1;
}

/* Hero text */

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
    color: #ffffff;
}

    .hero-content h1 {
        color: #ffffff;
        font-size: 3.2rem;
        font-weight: 700;
        margin: 0;
    }

    .hero-content h2 {
        color: #ffffff;
        font-size: 2rem;
        font-weight: 500;
        margin-top: 18px;
    }

    .hero-content p {
        color: rgba(255, 255, 255, 0.92);
        font-size: 1.1rem;
        line-height: 1.7;
        margin-top: 20px;
    }

/* Hero buttons */

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.hero-action-link {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #ffffff;
    border-radius: 6px;
    background: rgba(8, 28, 44, 0.25);
    backdrop-filter: blur(3px);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

    .hero-action-link:hover {
        color: #ffffff;
        border-color: transparent;
        background: linear-gradient( 90deg, #0056B3 0%, #5A3E6B 50%, #D62828 100% );
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    }

/* Hero mobile */

@media (max-width: 768px) {

    .hero-section {
        min-height: calc(100vh - 85px);
    }

    .hero-slide {
        object-position: center center;
    }

    .hero-content {
        padding: 40px 20px;
    }

        .hero-content h1 {
            font-size: 2.3rem;
        }

        .hero-content h2 {
            font-size: 1.5rem;
        }

        .hero-content p {
            font-size: 1rem;
        }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .hero-action-link {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
}


/* =========================================================
   HEADER NAVIGATION LINKS
========================================================= */

.tim-main-nav .nav-link {
    color: #0b1f33 !important;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 12px 18px !important;
    position: relative;
    transition: color 0.2s ease;
}

    .tim-main-nav .nav-link:hover {
        background: linear-gradient( 90deg, #0056B3 0%, #5A3E6B 50%, #D62828 100% );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent !important;
    }


    /* Navigation underline */

    .tim-main-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 5px;
        height: 2px;
        background: linear-gradient( 90deg, #0056B3 0%, #5A3E6B 50%, #A62323 100% );
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .tim-main-nav .nav-link:hover::after {
        transform: scaleX(1);
    }


/* Language selector */

#mainNavbar > .navbar-nav:last-child .nav-link {
    color: #0b1f33 !important;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 10px;
}


/* =========================================================
   FOOTER
========================================================= */

footer.footer {
    background-color: #081C2C;
    color: #ffffff !important;
}

    footer.footer a:hover {
        color: #D62828;
    }

footer.footer {
    position: relative;
}


    /* Footer gradient line */

    footer.footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient( 90deg, #0056B3 0%, #0056B3 40%, #5A3E6B 50%, #A62323 60%, #A62323 100% );
    }

    footer.footer .container {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    footer.footer a {
        color: #ffffff;
        text-decoration: none;
    }

        footer.footer a:hover {
            color: #D71920;
        }


/* =========================================================
   ACTIVE NAVIGATION PAGE
========================================================= */

.tim-main-nav .nav-link.active {
    background: linear-gradient( 90deg, #0056B3 0%, #5A3E6B 50%, #D62828 100% );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

    .tim-main-nav .nav-link.active::after {
        transform: scaleX(1);
    }


/* =========================================================
   ABOUT US PAGE
========================================================= */

.about-page {
    background-color: #ffffff;
    padding: 90px 24px 110px;
}

.about-container {
    max-width: 1350px;
    margin: 0 auto;
}


/* =========================================================
   ABOUT US - TEXT + IMAGE
========================================================= */

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}


/* =========================================================
   ABOUT US - TEXT
========================================================= */

.about-text-content {
    max-width: 700px;
}

.about-label {
    display: inline-block;
    color: #0056B3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.about-text-content h1 {
    color: #081C2C;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 30px;
}

.about-text-content p {
    color: #3f4b55;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
}


/* =========================================================
   ABOUT US - IMAGE
========================================================= */

.about-image-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.about-side-image {
    width: 100%;
    max-width: 620px;
    height: 520px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(8, 28, 44, 0.12);
}


/* =========================================================
   ABOUT US - TABLET
========================================================= */

@media (max-width: 1000px) {

    .about-intro {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-text-content {
        max-width: 100%;
    }

    .about-image-content {
        justify-content: center;
    }

    .about-side-image {
        max-width: 750px;
        height: auto;
    }
}


/* =========================================================
   ABOUT US - MOBILE
========================================================= */

@media (max-width: 768px) {

    .about-page {
        padding: 70px 20px 90px;
    }

    .about-text-content h1 {
        font-size: 42px;
    }

    .about-text-content p {
        font-size: 17px;
        line-height: 1.7;
    }

    .about-intro {
        gap: 35px;
    }

    .about-side-image {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }
}



/* =========================================================
   HEADER
========================================================= */

header {
    position: relative;
}


    /* Gradient line below header */

    header::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient( 90deg, #0056B3 0%, #0056B3 40%, #5A3E6B 50%, #D62828 60%, #D62828 100% );
    }


/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-page {
    background-color: #f4f6f8;
    padding: 100px 24px 120px;
    min-height: 650px;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}


/* Contact heading */

.contact-heading {
    text-align: center;
    margin-bottom: 60px;
}

.contact-label {
    display: inline-block;
    color: #0056B3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.contact-heading h1 {
    color: #081C2C;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-heading p {
    color: #56636d;
    font-size: 18px;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto;
}


/* Contact cards */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 850px;
    margin: 0 auto;
    transform: translateY(-35px);
}

.contact-card {
    background-color: #ffffff;
    border: 1px solid #e0e6eb;
    border-radius: 14px;
    padding: 50px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    .contact-card:hover {
        transform: translateY(-6px);
        border-color: #0056B3;
        box-shadow: 0 16px 40px rgba(8, 28, 44, 0.12);
    }


/* Contact icons */

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient( 135deg, #0056B3 0%, #5A3E6B 55%, #D62828 100% );
    color: #ffffff;
    font-size: 28px;
}


/* Contact information */

.contact-card h2 {
    color: #081C2C;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-card a {
    color: #0056B3;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .contact-card a:hover {
        color: #D62828;
    }


/* Contact mobile */

@media (max-width: 768px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-heading h1 {
        font-size: 42px;
    }

    .contact-page {
        padding: 70px 20px 90px;
    }
}


/* =========================================================
   PROJECTS PAGE
========================================================= */

.projects-page {
    background-color: #ffffff;
    padding: 100px 24px 120px;
    min-height: 650px;
}

.projects-container {
    max-width: 1100px;
    margin: 0 auto;
}

.projects-label {
    display: inline-block;
    color: #0056B3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.projects-container h1 {
    color: #081C2C;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
}

.projects-container p {
    color: #56636d;
    font-size: 18px;
    line-height: 1.7;
    max-width: 700px;
}


/* =========================================================
   SERVICES PAGE
========================================================= */

.services-page {
    background-color: #ffffff;
    padding: 100px 24px 120px;
    min-height: 650px;
}

.services-container {
    max-width: 1100px;
    margin: 0 auto;
}

.services-label {
    display: inline-block;
    color: #0056B3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.services-container h1 {
    color: #081C2C;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
}

.services-intro {
    color: #56636d;
    font-size: 18px;
    line-height: 1.7;
    max-width: 700px;
}


/* =========================================================
   LANGUAGE DROPDOWN
========================================================= */

.language-button {
    background: transparent;
    border: none;
    color: #0B1F33;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
}

    .language-button:hover {
        color: #0056B3;
    }

.dropdown-menu {
    border: 1px solid #dfe5ea;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(8, 28, 44, 0.12);
}

.dropdown-item {
    border-radius: 6px;
    padding: 10px 14px;
    color: #0B1F33;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .dropdown-item:hover {
        background-color: #f4f6f8;
        color: #0056B3;
    }



/* =========================================================
   HEADER - MOBILE
========================================================= */

@media (max-width: 768px) {

    .navbar-brand img {
        height: 75px;
        width: auto;
    }

    .navbar {
        padding-top: 4px;
        padding-bottom: 4px;
    }
}

/* =========================================================
   FOOTER - MOBILE
========================================================= */

@media (max-width: 768px) {

    footer.footer {
        text-align: center;
    }

        footer.footer .col-md-8 {
            margin-top: 18px;
            text-align: center !important;
        }

            footer.footer .col-md-8 a {
                display: inline-block;
                margin: 6px 8px !important;
            }
}

/* =========================================================
   SERVICES PAGE - MOBILE
========================================================= */

@media (max-width: 768px) {

    .services-page {
        padding: 70px 20px 90px;
    }

    .services-container h1 {
        font-size: 42px;
    }

    .services-intro {
        font-size: 17px;
    }
}

/* =========================================================
   PROJECTS PAGE - MOBILE
========================================================= */

@media (max-width: 768px) {

    .projects-page {
        padding: 70px 20px 90px;
    }

    .projects-container h1 {
        font-size: 42px;
    }

    .projects-container p {
        font-size: 17px;
    }
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 991px) {

    #mainNavbar {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .tim-main-nav .nav-link {
        padding: 10px 0 !important;
    }

        .tim-main-nav .nav-link::after {
            left: 0;
            right: 0;
        }
}

/* =========================================================
   CONTACT PAGE - MOBILE FIX
========================================================= */

@media (max-width: 768px) {

    .contact-grid {
        transform: none;
    }
}


/* =========================================================
   HOME PAGE - VALUE SECTION
========================================================= */

.home-values {
    background-color: #ffffff;
    padding: 70px 24px;
}

.home-values-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.home-value-item {
    text-align: center;
    padding: 30px 25px;
}

    .home-value-item h3 {
        color: #081C2C;
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 14px;
    }

    .home-value-item p {
        color: #56636d;
        font-size: 16px;
        line-height: 1.7;
        margin: 0;
    }


/* Mobile */

@media (max-width: 768px) {

    .home-values-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-values {
        padding: 50px 20px;
    }
}

/* Subtle separators between home value items */

.home-value-item {
    position: relative;
}

    .home-value-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 15%;
        right: -15px;
        width: 1px;
        height: 70%;
        background-color: #dfe5ea;
    }

@media (max-width: 768px) {

    .home-value-item:not(:last-child)::after {
        top: auto;
        right: 15%;
        bottom: -10px;
        width: 70%;
        height: 1px;
    }
}

/* =========================================================
   PROFESSIONAL FOOTER
========================================================= */

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
    gap: 55px;
    padding-top: 55px;
    padding-bottom: 45px;
}


/* =========================================================
   FOOTER HEADINGS
========================================================= */

.footer-company strong,
.footer-navigation h3,
.footer-contact h3,
.footer-follow h3 {
    color: #ffffff;
}

.footer-company strong {
    font-size: 20px;
}

.footer-navigation h3,
.footer-contact h3,
.footer-follow h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}


/* =========================================================
   FOOTER TEXT
========================================================= */

.footer-company p,
.footer-contact p,
.footer-follow p {
    color: #c6d0d8;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 18px;
}

.footer-company p {
    max-width: 390px;
}


/* =========================================================
   FOOTER BOTTOM CONTACT
========================================================= */

.footer-bottom-contact {
    display: flex;
    align-items: center;
    gap: 24px;
}

    .footer-bottom-contact a {
        color: #c6d0d8;
        font-size: 14px;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .footer-bottom-contact a:hover {
            color: #ffffff;
        }


/* Mobile */

@media (max-width: 768px) {

    .footer-bottom-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}





/* =========================================================
   QUICK LINKS
========================================================= */

.footer-navigation {
    display: flex;
    flex-direction: column;
}

    .footer-navigation a {
        width: fit-content;
        color: #ffffff;
        text-decoration: none;
        margin-bottom: 11px;
        transition: color 0.2s ease, transform 0.2s ease;
    }

        .footer-navigation a:hover {
            color: #D62828;
            transform: translateX(3px);
        }


/* =========================================================
   CONTACT
========================================================= */

.footer-contact {
    display: flex;
    flex-direction: column;
}

    .footer-contact p,
    .footer-follow p {
        min-height: 78px;
        margin-bottom: 20px;
    }

.footer-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 170px;
    min-height: 46px;
    box-sizing: border-box;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

    .footer-contact-button:hover {
        color: #ffffff !important;
        border-color: transparent;
        background: linear-gradient( 90deg, #0056B3 0%, #5A3E6B 50%, #D62828 100% );
        transform: translateY(-2px);
    }


/* =========================================================
   FOLLOW US
========================================================= */

.footer-follow {
    display: flex;
    flex-direction: column;
}


/* =========================================================
   LINKEDIN BUTTON
========================================================= */

.footer-socials {
    display: flex;
    align-items: center;
    margin-top: 0;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 170px;
    min-height: 46px;
    box-sizing: border-box;
    padding: 5px 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

    .footer-social-link:hover {
        color: #ffffff;
        border-color: transparent;
        background: linear-gradient( 90deg, #0056B3 0%, #5A3E6B 50%, #D62828 100% );
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }


/* LinkedIn icon circle */

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient( 135deg, #0056B3 0%, #5A3E6B 55%, #D62828 100% );
}

    .footer-social-icon svg {
        width: 16px;
        height: 16px;
    }


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 24px 0;
}

    .footer-bottom p {
        margin: 0;
        color: #c6d0d8;
        font-size: 14px;
    }


/* =========================================================
   FOOTER - TABLET
========================================================= */

@media (max-width: 1000px) {

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}


/* =========================================================
   FOOTER - MOBILE
========================================================= */

@media (max-width: 768px) {

    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 45px;
        padding-bottom: 35px;
    }

    .footer-contact p,
    .footer-follow p {
        min-height: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-socials {
        flex-wrap: wrap;
    }
}
