/* =========================================================
   DATASTAIR - SHARED DESIGN SYSTEM
   ========================================================= */

/* ---------------------------------------------------------
   1. ROOT VARIABLES
   --------------------------------------------------------- */

:root {
    --ds-primary: #0b5ed7;
    --ds-primary-dark: #084298;
    --ds-primary-light: #eaf2ff;
    --ds-dark: #071426;
    --ds-dark-soft: #0d1b2e;
    --ds-text: #1d2939;
    --ds-text-muted: #667085;
    --ds-white: #ffffff;
    --ds-light: #f7f9fc;
    --ds-border: #e4e7ec;
    --ds-radius-sm: 8px;
    --ds-radius-md: 14px;
    --ds-radius-lg: 20px;
    --ds-shadow-sm: 0 4px 16px rgba(16, 24, 40, 0.06);
    --ds-shadow-md: 0 12px 32px rgba(16, 24, 40, 0.10);
    --ds-transition: all 0.25s ease;
}


/* ---------------------------------------------------------
   2. GLOBAL
   --------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ds-text);
    background: var(--ds-white);
    line-height: 1.7;
}

a {
    text-decoration: none;
    transition: var(--ds-transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
}


/* ---------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------- */

.ds-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--ds-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

    .ds-section-label::before {
        content: "";
        width: 28px;
        height: 2px;
        background: var(--ds-primary);
    }

.ds-section-title {
    margin-bottom: 18px;
    color: var(--ds-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 750;
    line-height: 1.15;
}

.ds-section-description {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--ds-text-muted);
    font-size: 1.05rem;
}


/* ---------------------------------------------------------
   4. SHARED SECTIONS
   --------------------------------------------------------- */

.ds-section {
    padding: 100px 0;
}

.ds-section-light {
    background: var(--ds-light);
}

.ds-section-dark {
    background: var(--ds-dark);
    color: var(--ds-white);
}

.ds-section-header {
    margin-bottom: 55px;
}

    .ds-section-header.center {
        text-align: center;
    }

        .ds-section-header.center .ds-section-description {
            margin-right: auto;
            margin-left: auto;
        }


/* ---------------------------------------------------------
   5. NAVIGATION
   --------------------------------------------------------- */

.datastair-navbar {
    position: relative;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(228, 231, 236, 0.8);
}

.datastair-brand {
    display: inline-flex;
    align-items: center;
}

.datastair-logo {
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.datastair-navbar .nav-link {
    position: relative;
    margin: 0 5px;
    padding: 8px 12px !important;
    color: #344054;
    font-size: 0.94rem;
    font-weight: 600;
}

    .datastair-navbar .nav-link:hover,
    .datastair-navbar .nav-link.active {
        color: var(--ds-primary);
    }

    .datastair-navbar .nav-link::after {
        content: "";
        position: absolute;
        right: 12px;
        bottom: 0;
        left: 12px;
        height: 2px;
        background: var(--ds-primary);
        transform: scaleX(0);
        transform-origin: center;
        transition: var(--ds-transition);
    }

    .datastair-navbar .nav-link:hover::after,
    .datastair-navbar .nav-link.active::after {
        transform: scaleX(1);
    }

.datastair-navbar .navbar-toggler {
    border: 1px solid var(--ds-border);
}

    .datastair-navbar .navbar-toggler:focus {
        box-shadow: none;
    }


/* ---------------------------------------------------------
   6. BUTTONS
   --------------------------------------------------------- */

.datastair-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 650;
    transition: var(--ds-transition);
}

.datastair-btn-primary {
    color: var(--ds-white);
    background: var(--ds-primary);
    border: 1px solid var(--ds-primary);
}

    .datastair-btn-primary:hover {
        color: var(--ds-white);
        background: var(--ds-primary-dark);
        border-color: var(--ds-primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(11, 94, 215, 0.22);
    }

.datastair-btn-outline {
    color: var(--ds-dark);
    background: transparent;
    border: 1px solid #cfd5df;
}

    .datastair-btn-outline:hover {
        color: var(--ds-primary);
        border-color: var(--ds-primary);
        transform: translateY(-2px);
    }

.datastair-btn-light {
    color: var(--ds-dark);
    background: var(--ds-white);
    border: 1px solid var(--ds-white);
}

    .datastair-btn-light:hover {
        color: var(--ds-primary);
        transform: translateY(-2px);
    }


/* ---------------------------------------------------------
   7. HERO
   --------------------------------------------------------- */

.ds-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 120px;
    background: radial-gradient( circle at 85% 20%, rgba(11, 94, 215, 0.16), transparent 32% ), radial-gradient( circle at 10% 80%, rgba(11, 94, 215, 0.08), transparent 30% ), var(--ds-dark);
    color: var(--ds-white);
}

.ds-hero-content {
    position: relative;
    z-index: 2;
}

.ds-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #a9caff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

    .ds-hero-label::before {
        content: "";
        width: 32px;
        height: 2px;
        background: var(--ds-primary);
    }

.ds-hero-title {
    max-width: 850px;
    margin-bottom: 24px;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

    .ds-hero-title span {
        color: #66a3ff;
    }

.ds-hero-description {
    max-width: 680px;
    margin-bottom: 34px;
    color: #b7c3d4;
    font-size: 1.12rem;
}

.ds-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* ---------------------------------------------------------
   8. HERO TECH VISUAL
   --------------------------------------------------------- */

.ds-hero-visual {
    position: relative;
    min-height: 360px;
}

.ds-tech-grid {
    position: absolute;
    inset: 20px;
    background-image: linear-gradient( rgba(255, 255, 255, 0.055) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px );
    background-size: 42px 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: perspective(700px) rotateY(-8deg) rotateX(3deg);
}

.ds-tech-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(102, 163, 255, 0.45);
    border-radius: 50%;
    background: rgba(11, 94, 215, 0.16);
    box-shadow: 0 0 0 25px rgba(11, 94, 215, 0.04), 0 0 0 50px rgba(11, 94, 215, 0.025);
}

    .ds-tech-core i {
        color: #66a3ff;
        font-size: 3.2rem;
    }

.ds-tech-node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #bcd3f5;
    backdrop-filter: blur(8px);
}

    .ds-tech-node:nth-child(1) {
        top: 8%;
        left: 15%;
    }

    .ds-tech-node:nth-child(2) {
        top: 18%;
        right: 13%;
    }

    .ds-tech-node:nth-child(3) {
        right: 5%;
        bottom: 15%;
    }

    .ds-tech-node:nth-child(4) {
        bottom: 7%;
        left: 18%;
    }


/* ---------------------------------------------------------
   9. CARDS
   --------------------------------------------------------- */

.ds-card {
    height: 100%;
    padding: 32px;
    background: var(--ds-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    transition: var(--ds-transition);
}

    .ds-card:hover {
        border-color: rgba(11, 94, 215, 0.28);
        transform: translateY(-6px);
        box-shadow: var(--ds-shadow-md);
    }

.ds-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    border-radius: 12px;
    color: var(--ds-primary);
    background: var(--ds-primary-light);
    font-size: 1.45rem;
}

.ds-card-title {
    margin-bottom: 12px;
    color: var(--ds-dark);
    font-size: 1.18rem;
    font-weight: 700;
}

.ds-card-text {
    margin: 0;
    color: var(--ds-text-muted);
    font-size: 0.95rem;
}


/* ---------------------------------------------------------
   10. SOLUTION CARDS
   --------------------------------------------------------- */

.ds-solution-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 34px;
    background: var(--ds-dark-soft);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--ds-radius-md);
    transition: var(--ds-transition);
}

    .ds-solution-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 110px;
        height: 110px;
        border-radius: 50%;
        background: rgba(11, 94, 215, 0.12);
        transform: translate(35%, -35%);
    }

    .ds-solution-card:hover {
        border-color: rgba(102, 163, 255, 0.35);
        transform: translateY(-5px);
    }

    .ds-solution-card .ds-card-icon {
        position: relative;
        background: rgba(11, 94, 215, 0.16);
    }

    .ds-solution-card .ds-card-title {
        color: var(--ds-white);
    }

    .ds-solution-card .ds-card-text {
        color: #9eacbf;
    }


/* ---------------------------------------------------------
   11. INDUSTRIES
   --------------------------------------------------------- */

.ds-industry {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 22px;
    background: var(--ds-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    transition: var(--ds-transition);
}

    .ds-industry:hover {
        border-color: rgba(11, 94, 215, 0.3);
        box-shadow: var(--ds-shadow-sm);
        transform: translateY(-3px);
    }

.ds-industry-icon {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    color: var(--ds-primary);
    background: var(--ds-primary-light);
    font-size: 1.25rem;
}

.ds-industry-title {
    margin: 0;
    color: var(--ds-dark);
    font-size: 0.98rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   12. TECHNOLOGY
   --------------------------------------------------------- */

.ds-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ds-tech-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    color: #344054;
    background: var(--ds-white);
    border: 1px solid var(--ds-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

    .ds-tech-item i {
        color: var(--ds-primary);
    }


/* ---------------------------------------------------------
   13. STATS
   --------------------------------------------------------- */

.ds-stat {
    padding: 28px;
    text-align: center;
}

.ds-stat-number {
    display: block;
    margin-bottom: 5px;
    color: var(--ds-dark);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.ds-stat-label {
    color: var(--ds-text-muted);
    font-size: 0.9rem;
}


/* ---------------------------------------------------------
   14. CTA
   --------------------------------------------------------- */

.ds-cta {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient( 110deg, #071426, #0d2b52 );
    color: var(--ds-white);
}

.ds-cta-title {
    margin-bottom: 15px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 750;
    line-height: 1.15;
}

.ds-cta-text {
    max-width: 650px;
    margin-bottom: 28px;
    color: #b7c3d4;
}


/* ---------------------------------------------------------
   15. PORTFOLIO
   --------------------------------------------------------- */

.ds-portfolio-card {
    overflow: hidden;
    height: 100%;
    background: var(--ds-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    transition: var(--ds-transition);
}

    .ds-portfolio-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--ds-shadow-md);
    }

.ds-portfolio-image {
    position: relative;
    overflow: hidden;
    height: 210px;
    background: var(--ds-light);
}

    .ds-portfolio-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.ds-portfolio-card:hover .ds-portfolio-image img {
    transform: scale(1.04);
}

.ds-portfolio-content {
    padding: 25px;
}

.ds-portfolio-category {
    display: block;
    margin-bottom: 7px;
    color: var(--ds-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ds-portfolio-title {
    margin-bottom: 8px;
    color: var(--ds-dark);
    font-size: 1.15rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   16. PAGE HEADER
   --------------------------------------------------------- */

.ds-page-header {
    padding: 90px 0;
    background: radial-gradient( circle at 85% 25%, rgba(11, 94, 215, 0.16), transparent 30% ), var(--ds-dark);
    color: var(--ds-white);
}

.ds-page-title {
    margin-bottom: 15px;
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
}

.ds-page-description {
    max-width: 700px;
    margin: 0;
    color: #b7c3d4;
    font-size: 1.05rem;
}


/* ---------------------------------------------------------
   17. CONTACT
   --------------------------------------------------------- */

.ds-contact-card {
    height: 100%;
    padding: 32px;
    background: var(--ds-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
}

.ds-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 25px;
}

    .ds-contact-item:last-child {
        margin-bottom: 0;
    }

.ds-contact-icon {
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    color: var(--ds-primary);
    background: var(--ds-primary-light);
    font-size: 1.1rem;
}

.ds-contact-item h5 {
    margin-bottom: 4px;
    color: var(--ds-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

.ds-contact-item p {
    margin: 0;
    color: var(--ds-text-muted);
    font-size: 0.9rem;
}


/* ---------------------------------------------------------
   18. FOOTER
   --------------------------------------------------------- */

.datastair-footer {
    padding: 75px 0 25px;
    background: var(--ds-dark);
    color: #aab5c5;
}

.datastair-footer-brand {
    display: inline-block;
    margin-bottom: 20px;
}

.datastair-footer-logo {
    height: 85px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
}

.datastair-footer-description {
    max-width: 380px;
    margin: 0;
    color: #8996a8;
    font-size: 0.9rem;
}

.datastair-footer h5 {
    margin-bottom: 20px;
    color: var(--ds-white);
    font-size: 0.95rem;
    font-weight: 700;
}

.datastair-footer p {
    color: #8996a8;
    font-size: 0.9rem;
}

.datastair-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .datastair-footer-links li {
        margin-bottom: 10px;
        color: #8996a8;
        font-size: 0.88rem;
    }

    .datastair-footer-links a {
        color: #8996a8;
    }

        .datastair-footer-links a:hover {
            color: var(--ds-white);
        }

.datastair-footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a9caff;
    font-size: 0.9rem;
    font-weight: 650;
}

    .datastair-footer-contact:hover {
        color: var(--ds-white);
    }

.datastair-footer-divider {
    margin: 45px 0 22px;
    border-color: rgba(255, 255, 255, 0.08);
}

.datastair-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #697789;
    font-size: 0.78rem;
}


/* ---------------------------------------------------------
   19. ANIMATION
   --------------------------------------------------------- */

.ds-fade-up {
    animation: dsFadeUp 0.7s ease both;
}

@keyframes dsFadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------------------------------------------------------
   20. RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    .datastair-navbar {
        min-height: 78px;
    }

        .datastair-navbar .navbar-nav {
            padding-top: 15px;
        }

        .datastair-navbar .nav-link {
            margin: 2px 0;
        }

            .datastair-navbar .nav-link::after {
                display: none;
            }

        .datastair-navbar .datastair-btn {
            width: 100%;
        }

    .ds-hero {
        padding: 80px 0 90px;
    }

    .ds-hero-visual {
        min-height: 300px;
        margin-top: 45px;
    }

    .ds-section {
        padding: 75px 0;
    }
}


@media (max-width: 767.98px) {

    .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .ds-section {
        padding: 60px 0;
    }

    .ds-section-header {
        margin-bottom: 38px;
    }

    .ds-hero {
        padding: 65px 0 70px;
    }

    .ds-hero-title {
        font-size: 2.65rem;
    }

    .ds-hero-description {
        font-size: 1rem;
    }

    .ds-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .ds-hero-actions .datastair-btn {
            width: 100%;
        }

    .ds-hero-visual {
        min-height: 250px;
    }

    .ds-tech-grid {
        inset: 5px;
    }

    .ds-tech-core {
        width: 110px;
        height: 110px;
    }

        .ds-tech-core i {
            font-size: 2.4rem;
        }

    .ds-tech-node {
        width: 45px;
        height: 45px;
    }

    .ds-card {
        padding: 25px;
    }

    .ds-page-header {
        padding: 65px 0;
    }

    .datastair-footer-bottom {
        flex-direction: column;
    }
}


@media (max-width: 575.98px) {


    .datastair-logo {
        height: 44px;
        max-width: 190px;
    }

    .datastair-footer-logo {
        height: 58px;
        width: auto;
        max-width: 240px;
        object-fit: contain;
        display: block;
    }


    .ds-hero-title {
        font-size: 2.35rem;
    }

    .ds-section-title {
        font-size: 2rem;
    }

    .ds-tech-node:nth-child(1) {
        left: 5%;
    }

    .ds-tech-node:nth-child(2) {
        right: 5%;
    }

    .ds-tech-node:nth-child(3) {
        right: 0;
    }

    .ds-tech-node:nth-child(4) {
        left: 5%;
    }
}
