@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-black: #000000;
    --bg-dark: #121212;
    --bg-dark-soft: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-blue: #3b82f6;
    --font-title: 'Inter', sans-serif;
    --font-body: 'Heebo', sans-serif;
    --nav-height: 90px;
}

body {
    font-family: var(--font-body);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link {
    font-family: var(--font-title);
}

.collapse:not(.show) {
    display: none;
}

/* body .navbar-expand-lg .navbar-collapse{
            display: block !important;
} */
/* Navbar Customization */
.navbar {
    background: black !important;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    font-weight: 400;
    font-size:18px;
    color: var(--text-primary) !important;
    transition: color 0.2s ease;
}
.what-we-build a{
font-size: 18px;
}
p{
    font-size: 18px;
}
.what-we-build h3{
    font-size: 40px;
}
.nav-link:hover {
    color: var(--text-primary) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
}
.custom-row{
    border: 1px solid rgb(255 255 255 / 20%);
    padding: 50px;
}
.hero h1 {
    font-size: 76px;
    line-height: 110%;
}
.hero p{
    font-size: 20px;
    font-weight: 400;
}
body .btn {
    border-radius: 0px !important;
    border: none !important;
    font-weight: 500 !important;
    padding: 12px 32px !important;
    font-size: 18px !important;
}

.btn-primary-custom {
    background-color: #CEE0ED !important;
    color: #000000 !important;
}

.btn-secondary-custom {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}
.custom-row > div {
    margin: 0px;
}
/* Custom Backgrounds & Utilities */
.bg-dark-soft {
    background-color: var(--bg-dark-soft) !important;
    transition: background-color 0.3s ease;
}

.bg-dark-soft:hover {
    background-color: #222 !important;
}

.features-bg {
    background-color:#D8D9D9;
    overflow: hidden;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

/* Card Improvements */
.card-icon-box {
    width: 48px;
    height: 48px;
}

/* Accordion Styling (FAQ) */
.accordion-item {
    background: transparent !important;
    border-color: #eee !important;
}

.accordion-button {
    background-color: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    padding-left: 0;
    padding-right: 0;
}

.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: #000 !important;
    border-bottom: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(0,0,0,.125) !important;
}

.accordion-button::after {
    background-image: none !important;
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: #000;
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    padding-left: 0;
    padding-right: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333 !important;
}

/* CTA Styles */
.cta .btn-secondary-custom {
    border: 1px solid #7D7D7D !important;
    background-color: #E6E6E6 !important;
    padding: 10px 40px !important;
}

/* Links */
.hover-white:hover {
    color: #fff !important;
}

/* Footer Focus */
footer a {
    transition: color 0.2s ease;
}

/* Button Refinement */
.btn {
    border-radius: 4px !important;
}

.btn-light {
    background-color: #fff !important;
    color: #000 !important;
}

.btn-outline-light:hover {
    background-color: #fff !important;
    color: #000 !important;
}

.features-bg .container .row {
    position: relative;
    margin-top: 100px;
    padding-top: 100px !important;
}

.features-bg .container .row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background-color:rgb(1 8 6 / 15%);
}

.features-bg .container .row:first-child::before {
    display: none;
}

.features-bg .container .row:first-child {
    margin-top: 0px;
    padding-top: 0px !important;
}

.features-bg .container .row:last-child {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

.features-bg .container .feature-top-label {
    position: absolute;
    top: 20px;
}

.feature-top-label {
    font-size: 20px;
    margin-bottom: 80px;
}

.feature-top-label .num {
    font-weight: 700;
    margin-right: 15px;
    font-size: 20px;
}

.feature-tag {
    color: #010806;
    font-size: 16px;
    margin-bottom: 25px;
    display: block;
}

.feature-title {
    font-family: var(--font-title);
    font-size: 60px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 30px;
}

.feature-desc {
    font-size: 18px;
    color: #333;
    max-width: 450px;
    margin-bottom: 40px;
}

.btn-learn-custom {
    background-color: #FFFFFF !important;
    border: 1px solid #000 !important;
    border-radius: 0px !important;
    color: #000 !important;
    padding: 10px 25px !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.23s ease;
}

.btn-learn-custom:hover {
    background-color: #f0f0f0 !important;
}

.feature-details-link {
    color:white !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    display: inline-flex;
    align-items: center;
}

.what-we-build .card {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.feature-image-placeholder {
    background-color: #E2E2E2;
    aspect-ratio: 16/11;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-image-placeholder i {
    font-size: 80px;
    color: #BCBCBC;
}

.feature-image-placeholder .placeholder-num {
    position: absolute;
    top: 50%;
    right: 32%;
    font-size: 24px;
    font-weight: 700;
    color: #BCBCBC;
}

@media (max-width: 991.98px) {
    .feature-title { font-size: 40px; }
    .feature-top-label { margin-bottom: 40px; }
}

/* Services Bento Grid */
.services-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-col {
    display: flex;
    flex-direction: column;
}

.grid-item {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.grid-item:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

.item-cloud, .item-security, .item-government {
    flex-grow: 1;
}

@media (max-width: 991.98px) {
    .services-bento-grid {
        grid-template-columns: 1fr;
    }
}

.services-grid-section .feature-image-placeholder {
    margin-top: auto;
    width: 100%;
    aspect-ratio: 16/10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}


header.inner-banner{
        min-height: 492px !important;
        background-color: #010806 !important;
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 56px;
    }
    
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 80px;
    }

    .custom-row {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    /* Global Typography */
    h1 { font-size: 40px !important; }
    h2 { font-size: 32px !important; }
    h3 { font-size: 28px !important; }
    p { font-size: 16px !important; }
section.cta p.text-muted.mb-5 {
    margin: 14px !important;
}
section.final-cta .container {
    padding: 24px !important;
}
body .final-cta .d-flex{
    flex-direction: row !important;
}
section.final-cta {
    margin: 0px 20px;
            padding-bottom: 0px !important;
}
.final-cta .d-flex {
    flex-direction: row !important;
}
body .final-cta .btn{
        padding: 12px 20px !important;
}
    /* Navbar */
    .navbar-brand img {
        height: 28px !important;
    }

    /* Hero Section */
    .hero {
        padding-top: 50px;
        padding-bottom: 50px;
    }.hero .container {
    margin: 15px;
}
    .hero-image {
    padding: 10px 0px 0px 0px;
}
section.cta .container {
    padding-bottom: 0px !important;
    padding-top: 0px !important;
}
.custom-row{
    padding: 0px !important;
}
.hero-content{
    padding:30px !important;
}
    .hero h1 {
        font-size: 40px !important;
        line-height: 1.2;
        margin-bottom: 24px;
        text-align: left !important;
    }
    
    .hero p {
        margin-bottom: 30px !important;
        font-size: 16px;
        line-height: 1.6;
        text-align: left !important;
    }
    
    .custom-row {
        padding: 24px; /* Reduced padding on small screens to match border constraint */
        margin-top: 20px; 
    }
    
    .hero-content {
        margin-bottom: 30px;
        padding-top: 10px; /* Spacing from top border */
    }
    
    .hero .d-flex {
        justify-content: flex-start !important; /* Left align buttons */
    }

    /* What We Build (Solutions) */
    .what-we-build {
        padding-top: 30px !important;
    }
    
    .what-we-build .display-5 {
        font-size: 32px;
    }
    
    .what-we-build .card {
        padding: 24px !important;
    }
    
    .card-icon-box {
        margin-bottom: 20px !important;
    }
    
    .what-we-build h3 {
        font-size: 24px;
    }
header.inner-banner {
    min-height: 380px !important;
    background-color: #010806 !important;
    padding: 50px 0px 0px 0px !important;
}
.what-we-do .container{
    padding-top:0px !important;
}.what-we-do{
    padding-bottom: 0px !important;
}
body .what-we-do h2{
    font-size: 39px !important;
}
body .what-we-do .col-lg-4 {
    margin: 0px;
}
.inner-banner h1, .inner-banner p{
    text-align: center !important;
}
    /* Features Section */
    .features-bg .container .row {
        margin-top: 40px;
        padding-top: 40px !important;
    }

    .features-bg .container .row::before {
        display: none; /* Hide the connecting lines on mobile */
    }

    /* Fix overlaying labels */
    .features-bg .container .feature-top-label {
        position: static; /* Reset from absolute */
        margin-bottom: 15px;
        display: block;
    }
    
    .feature-top-label {
        margin-bottom: 15px;
        font-size: 16px;
    }
    
    .feature-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .feature-desc {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    /* Reverse order for alternating layouts if needed, 
       but currently they are just col-lg-6. 
       We insure image comes after text usually on mobile or we can use flex-direction if needed.
       The HTML structure is: Text Col, Image Col. So Text comes first. This is fine. 
    */
    
    .feature-image-placeholder {
        aspect-ratio: 16/10;
        margin-top: 20px;
    }

    /* FAQ Section */
    .faq .display-5 {
        font-size: 32px; /* Fix FAQ title size */
    }
    
    .accordion-button {
        font-size: 16px !important;
        padding: 15px 0 !important;
    }

    /* CTA Section */
    .cta .display-6 {
        font-size: 28px;
    }

    /* Footer */
    footer {
        text-align: left;
    }
    footer .container {
    padding-top: 30px !important;
}
footer h2 {
    font-size: 20px !important;
    font-weight: 500 !important;
}
footer p.text-secondary {
    color: white !important;
}
footer .input-group {
    margin-top: 25px;
}
.footer-logo {
    height: 95px;
}
footer [class^="col"] {
    margin: 0px;
}
footer, footer .container {
    padding-bottom: 0px !important;
}
footer .row-cols-2 > * , footer .border-top.pt-5.d-flex{
    padding: 0px 20px;
}
    /* Newsletter Form Stacking */
    footer .input-group {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column;
    }

    footer .input-group input {
        width: 100% !important;
        margin-bottom: 12px;
        border-radius: 2px !important;
    }

    footer .input-group button {
        width: 100% !important;
        border-radius: 2px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    /* Footer Links - Single Column */
    footer .row-cols-2 > * {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Footer Bottom Reordering */
    /* Target the main bottom container */
    footer .border-top.pt-5.d-flex {
        flex-direction: column-reverse !important; /* Puts Socials (last child) on top of Legal+Copyright (first child) */
        align-items: flex-start !important;
        gap: 40px !important;
        padding-top: 30px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* Target the Copyright + Legal container (originally first child) */
    footer .border-top.pt-5.d-flex > div:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 40px !important;
        width: 100%;
    }

    /* Move the Legal Links wrapper (inner div) above the Copyright (p tag) */
    footer .border-top.pt-5.d-flex > div:first-child > div {
        order: -1; /* This moves the Legal Links above the Copyright */
        flex-direction: column !important;
        display: flex !important;
        gap: 15px !important;
        align-items: flex-start !important;
        padding-left: 0 !important;
    }

    /* Social Icons (originally second child in HTML) */
    footer .border-top.pt-5.d-flex > div:last-child {
        width: 100%;
        justify-content: flex-start !important;
        margin-bottom: 10px; /* Add space below social icons */
    }

    /* --- SERVICES PAGE MOBILE STYLES --- */
    
    /* Services Hero */
    .inner-banner {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }

    .inner-banner h1.display-3 {
        font-size: 36px !important;
        line-height: 1.2;
    }
    
    .inner-banner p.lead {
        font-size: 16px !important;
        margin-bottom: 0 !important;
    }
    
    /* What We Do Section */
    .what-we-do {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .what-we-do h2 {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }
    
    .what-we-do .feature-image-placeholder {
        aspect-ratio: 16/9;
        margin-bottom: 20px !important;
        background-color: #2C3331; /* Slightly lighter than bg */
    }
    
    /* Services Bento Grid Mobile */
    .services-grid-section .display-4 {
        font-size: 28px !important;
        margin-bottom: 20px !important;
    }
    
    /* Add the blue dashed border wrapper style */
    .services-grid-section .container {
        border: 2px dashed #3b82f6; /* Blue dashed border from screenshot */
        padding: 24px 15px !important;
        margin-top: 20px;
        margin-bottom: 20px;
        background-color:#D8D9D9; /* Light gray bg for the container if needed, or transparent */
    }
    
    
    /* Override grid layout to stack vertically */
    .services-bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        height: auto !important;
    }
    
    .grid-col {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 20px !important;
    }
    
    .grid-item {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        margin-bottom: 0 !important; 
        background-color: #E5E5E5; /* Match design card bg */
        border: 1px solid #d1d5db;
    }

    /* Final CTA on Services Page */
    .final-cta {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .final-cta h3 {
        font-size: 26px !important;
    }
    
    .final-cta .btn {
        width: 100% !important; /* Full width buttons on mobile */
        margin-bottom: 10px;
    }
    
    .final-cta .d-flex {
        flex-direction: column !important;
    }

    /* --- CONTACT PAGE MOBILE STYLES --- */
    
    /* Global background for contact page body on mobile to match screenshot (light grey) */
    body:has(.contact-section) {
        background-color: #F3F3F3 !important;
    }

    .contact-section {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
        background-color: #F3F3F3 !important; /* Ensure section matches body */
    }

    /* Contact Header Typography */
    .contact-section h1.display-4 {
        font-size: 42px !important;
        font-weight: 600 !important;
        margin-bottom: 20px !important;
    }
    
    .contact-section .small.fw-bold {
        font-size: 16px !important;
        color: #000 !important;
    }
    
    .contact-section p.text-muted {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }

    /* Contact Info Icons */
    .contact-info {
        margin-bottom: 40px;
    }
    
    .contact-info-item {
        margin-bottom: 15px !important;
    }
    
    .contact-info-item i {
        font-size: 20px !important;
        min-width: 25px; /* Alignment */
    }

    /* Form Layout */
    .contact-form .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .contact-form .col-md-6 {
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 15px; /* Add spacing between stacked fields */
    }
    
    /* Ensure two-column layout for Name and Email/Phone fields on mobile if space permits, 
       otherwise native bootstrap col-md-6 will stack them. 
       Screenshot shows stacked layout for Name fields? 
       Actually standard mobile behavior is stacking. Let's force stack with standard bootstrap behavior.
       But if we want 2-col on mobile for small inputs: 
       Screenshot shows: First Name | Last Name separate? No, looks like stacked in many mobile views.
       Let's stick to default stacking or use .col-6 if side-by-side needed.
       Screenshot implies single column for inputs typically. 
    */

    .contact-form .form-label {
        font-size: 14px !important;
        margin-bottom: 5px !important;
        color: #333;
    }

    .contact-form .form-control, 
    .contact-form .form-select {
        background-color: #F3F3F3 !important; /* Match background */
        border: 1px solid #D1D1D1 !important;
        padding: 10px !important;
        font-size: 16px !important; /* Prevent zoom */
    }
    
    .contact-form textarea {
        background-color: #F3F3F3 !important;
    }

    /* Radio Buttons Layout */
    .contact-form .row.g-3 .col-md-6 {
        /* This targets the radio button columns */
        /* width: 50%; IF we want side-by-side radios. */
    }
    
    /* Submit Button */
    .contact-form .btn-submit {
        background-color: #D1E1E9 !important;
        border: 1px solid #7D9BAA !important;
        color: #000 !important;
        width: auto !important; /* Or full width? Screenshot shows button on left. */
        padding: 10px 30px !important;
        font-weight: 500 !important;
        border-radius: 2px !important;
    }
}