/* Trimmed Bootstrap-friendly CSS: branding variables + small overrides */
:root {
    --primary-color: #4169E1;
    --primary-color-alt: #3457b8;
    --footer-bg: #0a0a2a;
    --body-font: 'Inter', 'Poppins', 'Space Grotesk', sans-serif;
    --hero-fade-color: #f1f5ff;
}

html, body { height: 100%; }

body {
    font-family: var(--body-font);
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero background fade overlay: creates a soft fade at the bottom of the hero image to the about section */
.hero-bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18rem; /* adjust for fade height */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(248,250,252,1) 90%);
    pointer-events: none;
    z-index: 1;
}

/* Navbar branding tweaks */
.navbar-brand { font-family: 'Poppins', sans-serif; font-weight: 700; letter-spacing: 0.5px; }
.navbar-logo { height: 44px; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 992px) { .navbar-logo { height: 40px; max-width: 180px; } }
@media (max-width: 576px) { .navbar-logo { height: 36px; max-width: 160px; } }

/* Color helpers */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-color-alt);
    border-color: var(--primary-color-alt);
}

/* Footer background */
footer { background: var(--footer-bg) !important; color: #fff !important; }

/* Footer enhancements */
.footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.4); background: transparent; }
.footer .btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.footer .social-links a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.08); }
.footer .social-links a:hover { background: rgba(255,255,255,0.18); }

/* Small responsive helper for contact columns */
@media (max-width: 767.98px) {
    .contact-info, .contact-form { min-width: 100% !important; }
}

/* =====================
   Redesigned Hero styles
   ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 80px; /* navbar height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--hero-fade-color);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    /* Bottom mask to crop and fade */
    --fade-stop: 78%;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) var(--fade-stop), rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) var(--fade-stop), rgba(0,0,0,0) 100%);
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) calc(var(--fade-stop) - 6%));
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    color: #0b1324;
}

.stat-chip {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    padding: 0.75rem 1.25rem;
    min-width: 160px;
}
.stat-chip__value { font-weight: 700; color: var(--primary-color); font-size: 1.5rem; line-height: 1; }
.stat-chip__label { font-size: .85rem; color: #6b7280; }


.hero__title {
    font-family: var(--header-font);
    font-size: 3.5rem;
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*=============== ABOUT ===============*/
.about__container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.about__content, .about__sidebar {
    flex: 1 1 350px;
    min-width: 300px;
}

.about__content {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 2rem 1.5rem;
}

.about__sidebar {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(65,105,225,0.08);
    padding: 2rem 1.5rem;
}

/*=============== SERVICES ===============*/
.services__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.service__card {
    background-color: var(--white-color);
    padding: 2rem;
    text-align: center;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service__card:hover {
    transform: translateY(-0.5rem);
}

.service__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service__title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 1rem;
    color: var(--title-color);
}

.service__description {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Card component styles */
.card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s;
}
.card:hover {
    box-shadow: 0 8px 32px rgba(65,105,225,0.12);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}
.card-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #d946ef;
}
.card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}
.card-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}
.card-list li:before {
    content: '\2022';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    top: 0;
}

/*=============== PROJECTS ===============*/
.projects__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.project__card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.project__card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project__card:hover img {
    transform: scale(1.1);
}

.project__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white-color);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project__card:hover .project__overlay {
    transform: translateY(0);
}

.project__title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 0.5rem;
}

.project__description {
    font-size: var(--small-font-size);
    opacity: 0.8;
}

/* Projects grid as cards */
.projects .services-grid {
    gap: 2rem;
}
.project-image {
    font-size: 2.2rem;
    color: #d946ef;
    margin-bottom: 1rem;
}
.project-details {
    font-size: 0.95rem;
    color: var(--text-color-light);
    margin-top: 0.5rem;
    display: flex;
    gap: 1.5rem;
}

/*=============== CONTACT ===============*/
.contact__container {
    max-width: 500px;
    margin: 2rem auto 0 auto;
    padding: 2rem 1rem;
    background: #f8f8f8;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.contact__form {
    display: grid;
    gap: 1rem;
}

.contact__form input,
.contact__form textarea,
.contact__form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--white-color);
    outline: none;
    transition: border-color 0.3s;
}

.contact__form input:focus,
.contact__form textarea:focus,
.contact__form select:focus {
    border-color: var(--primary-color);
}

.contact__form button,
.contact__form input[type="submit"] {
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.contact__form button:hover,
.contact__form input[type="submit"]:hover {
    background: var(--primary-color-alt);
}

/* Contact section card */
.contact-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
}
.contact-info {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(65,105,225,0.08);
    padding: 2rem 1.5rem;
    flex: 1 1 280px;
    min-width: 250px;
    margin-bottom: 2rem;
}
.contact-form {
    flex: 1 1 320px;
    min-width: 280px;
}

/* Modern contact accents */
.contact-info-card { border-left: 4px solid var(--primary-color); }
.form-floating > .form-control:focus, .form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 .2rem rgba(65,105,225,.15);
}
.contact-badge { font-size: .75rem; }

/*=============== FOOTER ===============*/
.footer {
    background-color: var(--footer-bg);
    color: var(--white-color);
    padding: 2.5rem 0 1.5rem 0;
    margin-top: 3rem;
}

.footer__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: block;
}

.footer__title {
    font-size: 1.2rem;
    font-weight: var(--font-semi-bold);
    margin-bottom: 1.5rem;
    color: var(--white-color);
}

.footer__list {
    list-style: none;
    padding: 0;
}

.footer__list li {
    margin-bottom: 0.75rem;
}

.footer__list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__list a:hover {
    color: var(--white-color);
}

/* Footer card style */
.footer-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.footer-section {
    background: rgba(255,255,255,0.04);
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    flex: 1 1 220px;
    min-width: 180px;
    margin-bottom: 1rem;
}
.footer-bottom {
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

/*=============== MEDIA QUERIES ===============*/
/* For large devices */
@media screen and (max-width: 992px) {
    :root {
        --biggest-font-size: 2rem;
        --h1-font-size: 1.5rem;
        --h2-font-size: 1.25rem;
        --h3-font-size: 1rem;
        --normal-font-size: .938rem;
        --small-font-size: .813rem;
        --smaller-font-size: .75rem;
    }

    .container {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .about__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about__data {
        text-align: center;
    }
}

/* For medium devices */
@media screen and (max-width: 768px) {
    .nav {
        height: var(--header-height);
    }

    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        padding: 4rem 0;
        border-radius: 0 0 1.5rem 1.5rem;
        background-color: var(--container-color);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        transition: .4s;
    }

    .nav__list {
        flex-direction: column;
        row-gap: 2rem;
    }

    .services__container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .projects__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For small devices */
@media screen and (max-width: 576px) {
    .nav__menu {
        padding: 2rem 1.5rem;
    }

    .nav__list {
        row-gap: 1.5rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .projects__container {
        grid-template-columns: 1fr;
    }

    .footer__container {
        flex-direction: column;
        text-align: center;
        row-gap: 2rem;
    }
}

/* For tiny devices */
@media screen and (max-width: 376px) {
    :root {
        --biggest-font-size: 1.75rem;
        --h1-font-size: 1.375rem;
        --h2-font-size: 1.125rem;
        --h3-font-size: .875rem;
        --normal-font-size: .813rem;
        --small-font-size: .688rem;
        --smaller-font-size: .625rem;
    }

    .nav__logo {
        font-size: 1.125rem;
    }

    .button {
        padding: 0.75rem 2rem;
        font-size: 0.875rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 0.875rem;
    }

    .about__container {
        flex-direction: column;
        align-items: center;
    }

    .about__content, .about__sidebar {
        width: 100%;
    }

    .services__container {
        grid-template-columns: 1fr;
    }

    .projects__container {
        grid-template-columns: 1fr;
    }

    .contact__container {
        padding: 1.5rem;
    }

    .footer__container {
        padding: 0 1rem;
    }
}