/* =====================================================
   CHIAC ASI — Global Styles
   Cleaned up + fully responsive (mobile / tablet / desktop)
   ===================================================== */

/* ---------- Base / reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Josefin Sans', 'Madefor Display', Helvetica, Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;            /* stop stray wide elements causing sideways scroll */
    color: #111;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

/* Reusable readable text column (replaces the old padding-right: 900px hacks) */
.custom-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbars {
    padding-top: 20px;
}

.navbar-brand {
    font-size: 26px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand img {
    width: 120px;
    height: auto;
}

.navbar-expand-lg .navbar-nav .nav-link {
    margin-right: 24px;
}

.nav-link {
    font-size: 17px;
    color: #000;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-link.active {
    border-radius: 20px;
    padding: 6px 28px;
    border: 1px solid #000;
    color: #fff !important;
    background-color: #000;
}

.nav-link.active:hover {
    opacity: 1;
}

.navbar-nav .nav-link {
    color: #000;
}

/* Collapsed mobile menu — give it a readable backdrop over the video/image */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(6px);
        border-radius: 14px;
        margin-top: 12px;
        padding: 14px 18px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        margin-right: 0;
        padding: 8px 0;
    }

    .nav-link.active {
        display: inline-block;
    }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.navbar-btn {
    border-radius: 20px;
    padding: 6px 30px;
    border: 1px solid #000;
    color: #fff;
    background-color: #000;
    transition: all 0.3s ease;
}

.navbar-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
}

.btn-black-ux {
    background-color: #000;
    color: #fff;
    padding: 12px 26px;
    border: 1px solid #000;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-black-ux:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
}

.btn-black-ux .arrow {
    transition: transform 0.3s ease;
}

.btn-black-ux:hover .arrow {
    transform: translateX(4px);
}

.logo-dot {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #000;
    border-radius: 50%;
    vertical-align: middle;
}

/* =====================================================
   VIDEO HERO
   ===================================================== */
.video-background {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-background .content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding-top: 20%;
}

/* =====================================================
   TOP / HERO TEXT SECTION
   ===================================================== */
.top-section {
    padding-top: clamp(60px, 10vw, 120px);
}

.top-section h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    line-height: 1.25;
}

.top-section p {
    padding-top: clamp(24px, 4vw, 60px);
    font-size: clamp(15px, 1.4vw, 18px);
    max-width: 720px;              /* readable measure — replaces padding-right: 900px */
    text-align: justify;
}

/* =====================================================
   BODY SECTIONS
   ===================================================== */
hr.bold-start-line {
    border: none;
    height: 3px;
    background: linear-gradient(to right,
            #000 0px,
            #000 250px,
            #a39f9f 300px,
            #ccc 100%);
}

.body-section {
    margin-top: clamp(60px, 9vw, 100px);
}

.body-section p {
    font-size: clamp(15px, 1.4vw, 18px);
    text-align: justify;
}

.body-section h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    line-height: 1.25;
}

.body-section h3 {
    font-weight: 500;
}

.left-border {
    background: linear-gradient(to bottom,
            #000 0px,
            #000 250px,
            #a39f9f 300px,
            #ccc 100%);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 2px 100%;
}

.chiac-asi {
    background-image: url(Images/abstract-1.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.chiac-asi2 {
    background-image: url(Images/BG-2.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.chiac-asi2-content {
    padding: 0 clamp(16px, 10vw, 200px) clamp(40px, 6vw, 85px);
    font-size: clamp(15px, 1.4vw, 18px);
    text-align: justify;
}

.animated-heading {
    opacity: 0;
    transform: rotateX(160deg);
    transform-origin: bottom center;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.animated-heading.show {
    opacity: 1;
    transform: rotateX(0deg);
}

/* Inline padding-left:100px lives on many headings — scale it down responsively.
   (These !important rules override the inline styles below the lg breakpoint.) */
@media (max-width: 991.98px) {
    [style*="padding-left:100px"],
    [style*="padding-left: 100px"] {
        padding-left: 0 !important;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    [style*="padding-left:100px"],
    [style*="padding-left: 100px"] {
        padding-left: 40px !important;
    }
}

/* =====================================================
   PANEL SECTION ("Our Offerings")
   ===================================================== */
section.panel {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #000;
    z-index: 1;
    background: #fff;
}

.panel-1 { z-index: 1; }
.panel-2 { z-index: 2; }
.panel-3 { z-index: 3; }

.panel h3 {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 500;
}

.panel p {
    font-size: clamp(15px, 1.3vw, 17px);
}

.border-left-panel {
    border-left: 2px solid gray;
    padding-left: 40px;
    height: 100%;
}

.border-right-panel {
    border-right: 2px solid gray;
    padding-right: 40px;
    height: 100%;
}

.panel img {
    max-height: 70vh;
    object-fit: contain;
    width: 100%;
}

/* =====================================================
   TECHNOLOGY PAGE
   ===================================================== */
.tech-section {
    padding-top: clamp(80px, 12vw, 200px);
}

.tech-class {
    background-image: url(Images/tech-bg.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.tech-section h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    line-height: 1.25;
}

.tech-section h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.3;
}

.tech-section p {
    font-size: clamp(15px, 1.4vw, 18px);
    text-align: justify;
    padding: 0 clamp(0px, 6vw, 100px);
}

.custom-tech-one p {
    padding: 0 clamp(0px, 6vw, 100px);
    font-size: clamp(15px, 1.4vw, 18px);
    text-align: justify;
}

.split-right h5 {
    font-weight: 600;
    font-size: clamp(18px, 2vw, 22px);
}

.image-section {
    margin-top: clamp(50px, 8vw, 100px);
    margin-bottom: clamp(50px, 8vw, 100px);
    width: 85%;
    max-width: 100%;
    height: clamp(280px, 45vw, 700px);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-section {
    padding-top: clamp(80px, 11vw, 150px);
    padding-bottom: clamp(80px, 11vw, 150px);
}

.about-section h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    line-height: 1.25;
}

.heritage {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 300;
    padding: 40px 0;
}

.about-section p {
    padding-top: clamp(24px, 4vw, 60px);
    font-size: clamp(15px, 1.4vw, 18px);
    max-width: 760px;              /* replaces padding-right: 900px */
    text-align: justify;
}

.founders {
    padding-left: clamp(0px, 12vw, 200px);
    text-align: justify;
}

.team-section {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: clamp(30px, 6vw, 50px) 0;
    margin-top: clamp(30px, 5vw, 50px);
}

.team-card,
.team-card-1 {
    flex: 1 1 300px;
    max-width: 400px;
    min-height: 520px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 24px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card {
    background: linear-gradient(to bottom, #828285 55%, #f8f8ff 55%);
}

.team-card-1 {
    background: linear-gradient(to bottom, #b9b9be 55%, #f8f8ff 55%);
}

.team-card:hover,
.team-card-1:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.team-card h4,
.team-card-1 h4 {
    padding-top: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.team-card h2,
.team-card-1 h2 {
    padding-top: 16px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 15px;
}

.team-card p,
.team-card-1 p {
    padding-top: 24px;
    font-size: 16px;
    line-height: 1.5;
}

.team-card h4,
.team-card h2,
.team-card p { color: #fff; }

.team-card-1 h4,
.team-card-1 h2,
.team-card-1 p { color: #000; }

.team-card::after {
    content: "";
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-class {
    margin-top: clamp(80px, 10vw, 120px);
}

.contact-class h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
}

.contact-class p {
    font-size: clamp(15px, 1.4vw, 18px);
}

.contact-section {
    display: flex;
    justify-content: center;
    padding: clamp(30px, 6vw, 50px) 0;
}

.contact-form {
    width: 100%;
    max-width: 720px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-group {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    padding-bottom: 22px;
}

.contact-form label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    margin-top: 12px;
    background: #1a1a1d;
    color: #fff;
    border: 1px solid #1a1a1d;
    padding: 14px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 250px;
    max-width: 100%;
    transition: background 0.3s, color 0.3s;
}

.btn-submit:hover {
    background: #fff;
    color: #000;
}

/* =====================================================
   RESULTS BLOCK
   ===================================================== */
.result-class h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 300;
}

.result-class p {
    font-size: clamp(15px, 1.4vw, 18px);
}

.Result-custom {
    padding: 0 clamp(0px, 6vw, 100px);
}

.result-class a,
.Result-custom a {
    color: #000;
    font-weight: 600;
    text-decoration: underline;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    width: 100%;
    border-top: 1px solid #e6e6e6;
    margin-top: 40px;
}

.footer .list-inline-item a {
    color: #666;
    transition: color 0.25s ease;
}

.footer .list-inline-item a:hover {
    color: #000;
}

/* =====================================================
   RESPONSIVE — TABLET (max 991px)
   ===================================================== */
@media (max-width: 991.98px) {
    .top-section p,
    .about-section p {
        max-width: 100%;
    }

    /* Stacked panels shouldn't scroll-jack or clip on smaller screens */
    section.panel {
        position: static;
        min-height: auto;
        display: block;
        padding: 40px 0;
    }

    .border-left-panel,
    .border-right-panel {
        border: none;
        padding-left: 0;
        padding-right: 0;
        height: auto;
    }

    .founders {
        padding-left: 0;
    }
}

/* =====================================================
   RESPONSIVE — MOBILE (max 767px)
   ===================================================== */
@media (max-width: 767.98px) {
    .custom-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .navbar-brand img {
        width: 90px;
    }

    .nav-link {
        font-size: 16px;
    }

    /* Headings — smaller on phones (the old rules blew these up to 48px) */
    .top-section h1,
    .body-section h1,
    .tech-section h1,
    .about-section h1,
    .contact-class h1,
    .result-class h1,
    .heritage {
        font-size: clamp(24px, 7vw, 30px);
    }

    .tech-section h2,
    .about-section h2,
    .body-section h3 {
        font-size: clamp(20px, 6vw, 26px);
    }

    /* Body copy: left-align reads better than justify on narrow screens */
    .top-section p,
    .body-section p,
    .tech-section p,
    .about-section p,
    .contact-class p,
    .chiac-asi2-content,
    .custom-tech-one p {
        text-align: left;
        padding-left: 0;
        padding-right: 0;
        hyphens: auto;
    }

    .tech-section p,
    .custom-tech-one p {
        padding: 0;
    }

    .Result-custom {
        padding: 0;
    }

    .image-section {
        width: 100%;
        height: clamp(220px, 55vw, 340px);
    }

    .team-section {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .team-card,
    .team-card-1 {
        max-width: 100%;
        min-height: auto;
    }

    .btn-submit {
        width: 100%;
        font-size: 16px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .animated-heading {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
