/* =========================================================
   GLOBAL
   ========================================================= */

body {
    background: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff !important;
    letter-spacing: 1px;
}

.navbar-nav {
    gap: 10px;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 600;
    padding: 8px 18px !important;
    border-radius: 8px;
    background: rgba(0, 0, 0, .35);
    transition: all .3s ease;
}

.navbar-nav .nav-link:hover {
    background: rgba(220, 53, 69, .65);
    transform: translateY(-2px);
}


/* =========================================================
   HERO / HOME CAROUSEL
   ========================================================= */

.hero-carousel {
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-carousel .carousel-item {
    min-height: 620px;
}

.hero-slide {
    min-height: 620px;
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    min-height: 620px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 70px 7%;
}

.hero-content > .row {
    width: 100%;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 5;
    padding: 30px 20px 30px 0;
}

.hero-label {
    display: inline-block;
    padding: 8px 15px;
    margin-bottom: 20px;

    background: rgba(220, 53, 69, .18);
    border-left: 4px solid #dc3545;

    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    position: relative;
    z-index: 5;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin: 0 0 25px;
    max-width: 700px;
    overflow: visible;
    word-break: normal;
    overflow-wrap: normal;
}

.hero-title span {
    display: inline;
    color: #dc3545;
}

.hero-description {
    position: relative;
    z-index: 5;
    color: #ddd;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 0 25px;
}

.hero-buttons {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.hero-btn {
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 7px;
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 65vh;
    min-height: 450px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual::before {
    content: "";
    position: absolute;

    width: 75%;
    height: 75%;

    background: rgba(220, 53, 69, .08);

    border-radius: 50%;

    filter: blur(30px);
}

.hero-image-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 600px;
    height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 100%;

    object-fit: contain;
    display: block;

    background: transparent;
}

.image-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    pointer-events: none;

    background: radial-gradient(
        circle,
        transparent 35%,
        rgba(0, 0, 0, .15) 75%,
        rgba(0, 0, 0, .45) 100%
    );
}


/* =========================================================
   HERO IMAGE ROTATION
   ========================================================= */

.desktop-rotate {
    animation: rotateDesktop 5s ease-in-out forwards;
    transform-origin: center center;
}

@keyframes rotateDesktop {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(90deg);
    }

}


/* =========================================================
   CAROUSEL CONTROLS
   ========================================================= */

.carousel-control-prev,
.carousel-control-next {
    width: 55px;
    height: 55px;

    top: 50%;
    transform: translateY(-50%);

    background: rgba(220, 53, 69, .35);

    border-radius: 50%;

    margin: 0 20px;

    opacity: .8;

    z-index: 20;
    pointer-events: auto;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(220, 53, 69, .75);
    opacity: 1;
}

.carousel-indicators {
    bottom: 20px;
    z-index: 20;
}

.carousel-indicators button {
    width: 35px;
    height: 4px;
    border: 0;
    border-radius: 5px;
}


/* =========================================================
   HOME SOLUTIONS SECTION
   ========================================================= */

.solutions-section {
    padding: 90px 20px;
    background: #050505;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-description {
    text-align: center;
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.solution-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(255, 255, 255, .25);
}

.solution-card-image-wrapper {
    height: 220px;
    overflow: hidden;
    background: #000;
    padding: 0;
    border-bottom: 1px solid rgba(220, 53, 69, .5);
}

.solution-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-card .card-body {
    background: #101010;
    padding: 30px;
}

.solution-card h3 {
    font-weight: 800;
    margin-bottom: 15px;
}

.solution-card p {
    color: #aaa;
    line-height: 1.7;
}

.solution-placeholder {
    height: 220px;
    background: linear-gradient(
        135deg,
        #111,
        #222
    );
}


/* =========================================================
   HOME LATEST PROJECTS
   ========================================================= */

.latest-projects {
    padding: 90px 20px;
    background: #000;
}

.project-card-home {
    background: #101010;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
}

.project-card-home img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.project-card-home .card-body {
    padding: 25px;
}

.project-card-home h4 {
    font-weight: 700;
}

.project-card-home p {
    color: #aaa;
}


/* =========================================================
   PROJECT CARDS
   ========================================================= */

.project-card {
    height: 100%;
    background: #111;
    border: 1px solid rgba(220, 53, 69, .45);
    border-radius: 12px;
    overflow: hidden;

    transition: transform .3s ease, box-shadow .3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(220, 53, 69, .25);
}

.project-image-wrapper {
    width: 100%;
    height: 240px;

    background: #000;

    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.06);
}

.project-card-body {
    padding: 25px;
}

.project-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.project-card p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 0;
}

.browse-projects-btn {
    margin-top: 45px;
}


/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact-section {
    background: #050505;
    padding: 80px 20px 50px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #fff;
    text-decoration: none;

    padding: 11px 18px;
    margin: 4px;

    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 7px;

    transition: all .3s ease;
}

.contact-link:hover {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
    transform: translateY(-3px);
}


/* =========================================================
   LOGO
   ========================================================= */

.star-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.star-logo img {
    max-width: 240px;
    width: 100%;
    height: auto;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 25px 15px;
    text-align: center;
    color: #777;
}


/* =========================================================
   INQUIRE / SOLUTIONS / PROJECTS PAGE HERO
   ========================================================= */

.page-hero {
    padding: 70px 20px 45px;
    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(220, 53, 69, .12),
            transparent 45%
        ),
        #000;
}

.page-label {
    color: #dc3545;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.page-title {
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    font-weight: 900;
    margin: 12px 0;
}

.page-description {
    max-width: 650px;
    margin: auto;
    color: #999;
    line-height: 1.7;
}


/* =========================================================
   INQUIRE PAGE
   ========================================================= */

.inquiry-section {
    padding: 60px 20px 80px;
}

.contact-option {
    height: 100%;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    transition: .3s;
}

.contact-option:hover {
    transform: translateY(-7px);
    border-color: rgba(220, 53, 69, .6);
    box-shadow: 0 15px 35px rgba(220, 53, 69, .12);
}

.contact-icon {
    font-size: 2.5rem;
    color: #dc3545;
    margin-bottom: 15px;
}

.contact-option h3 {
    font-weight: 800;
    margin-bottom: 10px;
}

.contact-option p {
    color: #888;
    line-height: 1.6;
}

.contact-button {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    border-radius: 7px;
    background: #dc3545;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
}

.contact-button:hover {
    background: #b02a37;
    color: #fff;
}

.email-button {
    background: transparent;
    border: 1px solid #dc3545;
}

.email-button:hover {
    background: #dc3545;
}

.project-needs {
    padding: 70px 20px;
    background: #070707;
}

.project-needs .section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.project-needs .section-description {
    color: #888;
    margin-bottom: 35px;
}

.need-card {
    background: #101010;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 25px;
    height: 100%;
}

.need-card i {
    color: #dc3545;
    font-size: 1.5rem;
}

.need-card h5 {
    margin-top: 15px;
    font-weight: 800;
}

.need-card p {
    color: #888;
    font-size: .9rem;
    line-height: 1.6;
}

.process {
    padding: 70px 20px;
}

.process .section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.process-step {
    text-align: center;
    padding: 25px;
}

.step-number {
    width: 45px;
    height: 45px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-weight: 900;
    margin-bottom: 15px;
}

.process-step h5 {
    font-weight: 800;
}

.process-step p {
    color: #888;
    font-size: .9rem;
}


/* =========================================================
   SOLUTIONS PAGE
   ========================================================= */

.solutions {
    padding: 65px 20px 80px;
}

.solutions .section-title {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.solutions .section-description {
    color: #888;
    max-width: 650px;
    margin: 0 auto 40px;
}

.solutions .solution-card {
    height: 100%;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    padding: 30px;
    transition: .3s;
}

.solutions .solution-card:hover {
    transform: translateY(-7px);
    border-color: rgba(220, 53, 69, .65);
    box-shadow: 0 15px 35px rgba(220, 53, 69, .12);
}

.solution-icon {
    font-size: 2.5rem;
    color: #dc3545;
    margin-bottom: 18px;
}

.solutions .solution-card h3 {
    font-weight: 800;
    margin-bottom: 12px;
}

.solutions .solution-card p {
    color: #888;
    line-height: 1.7;
}

.solution-list {
    padding-left: 0;
    list-style: none;
    margin-top: 20px;
}

.solution-list li {
    color: #aaa;
    font-size: .9rem;
    margin-bottom: 8px;
}

.solution-list li::before {
    content: "✓";
    color: #dc3545;
    font-weight: 900;
    margin-right: 8px;
}

.capabilities {
    padding: 70px 20px;
    background: #070707;
}

.capabilities .section-title {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.capabilities .section-description {
    color: #888;
    margin-bottom: 40px;
}

.capability-table {
    background: #101010;
    border-radius: 12px;
    overflow: hidden;
}

.capability-table th {
    background: #dc3545;
    color: #fff;
    font-weight: 800;
}

.capability-table td {
    background: #101010;
    color: #aaa;
    border-color: rgba(255, 255, 255, .08);
}

.status {
    color: #dc3545;
    font-weight: 700;
}

.approach {
    padding: 70px 20px;
}

.approach .section-title {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.approach .section-description {
    color: #888;
    margin-bottom: 40px;
}

.approach-card {
    text-align: center;
    padding: 25px;
}

.approach-number {
    font-size: 3rem;
    font-weight: 900;
    color: #dc3545;
    opacity: .8;
}

.approach-card h4 {
    font-weight: 800;
}

.approach-card p {
    color: #888;
    line-height: 1.6;
}


/* =========================================================
   PROJECTS PAGE
   ========================================================= */

.featured {
    padding: 30px 20px 70px;
}

.featured-card {
    background: #101010;
    border: 1px solid rgba(220, 53, 69, .35);
    border-radius: 16px;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: 390px;
    object-fit: cover;
}

.featured-content {
    padding: 35px;
}

.project-label {
    color: #dc3545;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.featured-content h2 {
    font-weight: 900;
    font-size: 2.3rem;
    margin: 10px 0 15px;
}

.featured-content p {
    color: #999;
    line-height: 1.7;
}

.tech-tag {
    display: inline-block;
    padding: 6px 10px;
    margin: 3px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    color: #bbb;
    font-size: .75rem;
}

.projects-section {
    background: #070707;
    padding: 70px 20px;
}

.projects-section .section-title {
    font-size: 2.3rem;
}

.projects-section .section-description {
    color: #888;
    margin-bottom: 40px;
}


/* =========================================================
   STATS
   ========================================================= */

.stats {
    padding: 65px 20px;
    background: #000;
}

.stat {
    text-align: center;
    padding: 20px;
}

.stat h3 {
    color: #dc3545;
    font-size: 2.5rem;
    font-weight: 900;
}

.stat p {
    color: #777;
    margin: 0;
}


/* =========================================================
   PAGE-SPECIFIC CONTACT OVERRIDES
   ========================================================= */

body:has(.inquiry-section) .contact-section,
body:has(.solutions) .contact-section,
body:has(.featured) .contact-section {
    padding: 65px 20px 40px;
}

body:has(.inquiry-section) .star-logo img,
body:has(.solutions) .star-logo img,
body:has(.featured) .star-logo img {
    max-width: 210px;
}

body:has(.inquiry-section) footer,
body:has(.solutions) footer,
body:has(.featured) footer {
    padding: 22px;
    color: #666;
    font-size: .85rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .hero-carousel .carousel-item,
    .hero-slide,
    .hero-content {
        min-height: 700px;
    }

    .hero-content {
        padding: 50px 5%;
    }

    .hero-text {
        padding: 20px 0;
    }

    .hero-title {
        font-size: clamp(2.4rem, 6vw, 4rem);
    }

    .hero-visual {
        height: 55vh;
        min-height: 350px;
    }

    .hero-image-container {
        height: 400px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
        margin: 0 10px;

        z-index: 20;
        pointer-events: auto;
    }

    .section-title {
        font-size: 2.3rem;
    }
}


@media (max-width: 767px) {

    .hero-carousel .carousel-item,
    .hero-slide,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        padding: 45px 20px 70px;
    }

    .hero-text {
        padding: 20px 10px;
        text-align: center;
    }

    .hero-label {
        font-size: .7rem;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        line-height: 1.1;
        letter-spacing: -1px;
        max-width: 100%;
    }

    .hero-description {
        font-size: .95rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        height: 45vh;
        min-height: 280px;
        margin-top: 10px;
    }

    .hero-image-container {
        height: 280px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 38px;
        height: 38px;
        margin: 0 5px;

        z-index: 20;
        pointer-events: auto;
    }

    .solutions-section,
    .latest-projects,
    .contact-section {
        padding: 60px 15px;
    }

    .solution-card-image {
        height: 160px;
    }

    .project-image-wrapper {
        height: 220px;
    }

    .featured-image {
        height: 250px;
    }

    .featured-content {
        padding: 25px;
    }

    .featured-content h2 {
        font-size: 1.8rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .star-logo {
        margin-top: 35px;
    }
    /* =========================
   STAR TECHNOLOGIES LOADER
========================= */

#pageLoader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    background: #050505;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

#pageLoader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    width: min(420px, 80%);
    text-align: center;
}

.loader-logo {
    width: 180px;
    max-width: 70%;
    height: auto;

    margin-bottom: 35px;

    animation: loaderPulse 1.8s ease-in-out infinite;
}

.loader-line {
    width: 100%;
    height: 3px;

    background: rgba(255, 255, 255, 0.12);

    overflow: hidden;
    position: relative;
}

.loader-line::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 35%;
    height: 100%;

    background: #dc3545;

    box-shadow:
        0 0 10px rgba(220, 53, 69, 0.8),
        0 0 25px rgba(220, 53, 69, 0.5);

    animation: loaderProgress 1.5s ease-in-out infinite;
}

.loader-text {
    margin-top: 18px;

    font-size: 11px;
    letter-spacing: 4px;

    color: rgba(255, 255, 255, 0.65);

    font-weight: 600;
}

.loader-percentage {
    margin-top: 10px;

    color: #dc3545;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;
}


/* =========================
   LOADER ANIMATIONS
========================= */

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 0.65;
        transform: scale(0.97);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}


@keyframes loaderProgress {

    0% {
        left: -35%;
    }

    100% {
        left: 100%;
    }
}
}
