:root {
    --bg: #f2f4fb;
    --text: #0d2145;
    --primary: #1565d8;
    --muted: #475c88;
    --panel: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
}

/* ===== DESKTOP VIEW (Default) ===== */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: var(--panel);
    border-radius: 0;
    box-shadow: 0 20px 45px rgba(15, 30, 70, 0.2);
    overflow: hidden;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    text-align: left;
    margin: 0;
    padding-left: 2rem;
}

.hero_bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(0.55);
}

.hero_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 24, 48, 0.32), rgba(7, 17, 37, 0.72));
}

.hero_content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero_brand {
    position: absolute;
    top: -95px;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}
.hero_brand img{
    width: 400px;
    height: auto;
}
.hero h1 {
    font-size: 3.1rem;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 1rem;
}

.hero h1 span {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.hero_sub {
    margin: 0 0 1.6rem;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.1rem;
}

.hero_cta_wrap {
    display: flex;
    justify-content: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.btn {
    font-weight: 700;
    border-radius: 8px;
    padding: 0.75rem 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: #134bab;
    color: #fff;
    border: 1px solid #134bab;
}

.btn-primary:hover {
    background: #153f86;
    border-color: #134bab;
}

.btn-secondary {
    background: #1fbd4f;
    color: #fff;
    border: 1px solid #1fbd4f;
}

.btn-secondary:hover {
    background: #14993b;
    border-color: #14993b;
}

.btn-outline {
    background: transparent;
    border: 2px solid #1577ff;
    color: #1577ff;
    padding: 0.78rem 1.4rem;
}

.btn-outline:hover {
    background: rgba(21, 119, 255, 0.1);
}

.hero_note {
    font-size: 1rem;
    color: #f3f7ff;
}

.stats_bar {
    background: #134bab;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 4px 2rem;
    font-weight: 700;
    color: #ffffff;
    width: 100%;
}

.stats_item {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border: 0;
}

.stats_item:not(:first-child)::before {
    content: "•";
    margin-right: 1.75rem;
    color: #ffffff;
    display: inline-block;
}

.contact_page {
    padding: 4rem 0;
}

.contact_card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(10, 20, 40, 0.08);
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact_form {
    display: grid;
    gap: 1.25rem;
}

.form_row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form_group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form_control {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d1d7eb;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    color: #0d2145;
    background: #ffffff;
}

.form_control:focus {
    outline: 2px solid rgba(21, 119, 255, 0.25);
    border-color: #1577ff;
}

.form_note {
    color: var(--muted);
    font-size: 0.95rem;
}

.success_banner,
.error_box {
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.success_banner {
    background: #e9f7ee;
    color: #0f4d23;
}

.error_box {
    background: #fff1f1;
    color: #601010;
}

.error_box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.visually_hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .form_row {
        grid-template-columns: 1fr;
    }

    .contact_card {
        padding: 1.5rem;
    }
}

.section {
    padding: 4rem 0;
}
.cntr_text{
    text-align: center;
}
.section_header {
    margin-bottom: 2rem;
    text-align: center;
}

.section_header h2 {
    font-size: 2.7rem;
    color: #0f2b56;
    margin-bottom: 0.45rem;
}

.section_header p {
    font-size: 1.15rem;
    color: var(--muted);
}

.cards {
    display: grid;
    gap: 1rem;
}

.cards-4 {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.cards-3 {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.card {
    background: var(--panel);
    border: 1px solid #e5ebf6;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(20, 44, 77, 0.08);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(20, 44, 77, 0.15);
}

.card_icon {
    font-size: 2.1rem;
    margin-bottom: 0.8rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.work_with {
    background: #fff;
    padding: 4.5rem 0;
}

.work_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.work_text h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    color: #0f2b56;
}

.work_text ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.2rem;
}

.work_text li {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2f4f84;
}

.work_text .btn {
    margin-top: 1rem;
}

.work_image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 15px 30px rgba(10, 20, 40, 0.13);
}

.project_cards {
    margin-top: 1.5rem;
}

.project_card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: #d1d1d1 solid 1px;
}

.project_card img {
    width: 100%;
    height: auto;
    display: block;
}

.project_overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
}

.project_card:hover .project_overlay {
    opacity: 1;
}

.recent_work .text-center {
    margin-top: 1.25rem;
    padding-bottom: 50px;
}

.cta_footer {
    background: #0c2f6f;
    color: #fff;
    padding: 3rem 0;
}

.cta_inner {
    text-align: center;
}

.cta_inner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta_buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== BEFORE/AFTER GALLERY ===== */
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.ba-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: #f9fbff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5ebf6;
}

.ba-item {
    text-align: center;
}

.ba-item h3 {
    font-size: 1.2rem;
    color: #0f2b56;
    margin-bottom: 1rem;
    font-weight: 700;
}

.ba-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(20, 44, 77, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ba-item a img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(20, 44, 77, 0.18);
}

/* ===== TABLET VIEW (max-width: 1024px) ===== */
@media (max-width: 1024px) {
    .cards-4 {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .work_grid {
        grid-template-columns: 1fr;
    }

    .ba-pair {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===== MOBILE VIEW (max-width: 768px) ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 540px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    .hero_brand {
        top: -45px;
    }
    .hero_brand img{
        width: 200px;
        height: auto;
    }
    .stats_bar {
        display: none;
        flex-direction: column;
    }

    .stats_item:not(:first-child)::before {
        display: none;
    }

    .cards-3,
    .cards-4 {
        grid-template-columns: 1fr;
    }

    .hero_content {
        padding: 0 1rem;
    }

    .ba-pair {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .ba-item h3 {
        font-size: 1.1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .before-after-grid {
        gap: 1rem;
    }
}