/* Custom Styles for Mimesis Website */
:root {
    --color-accent: #74b4c9;
}

/* Carousel Card Branding/Category/Online Text */
.parallax-content span {
    font-family: 'Montserrat', sans-serif !important;
    color: var(--color-accent) !important;
    font-weight: 500;
    /* Ensuring visibility */
    text-transform: uppercase;
    /* Matching design usually */
    letter-spacing: 0.1em;
}

/* Carousel Card Title */
.parallax-content h4 {
    font-family: 'Sulphur Point', sans-serif !important;
    font-weight: 700;
}

/* Global Background Color */
body {
    background-color: #080808 !important;
}

/* Client Marquee Styling */
/* Client Marquee Styling */
.marq-brand .item a {
    cursor: default !important;
    pointer-events: none;
}

.marq-brand .item img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.marq-brand .item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Remove green hover effect on App Development Services */
.serv-style4 .item:hover {
    background: transparent !important;
    color: inherit !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.serv-style4 .item.bg-light:hover {
    background: #fff !important;
    color: #1f1f1f !important;
}

.serv-style4 .item:hover .img {
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 0.7 !important;
}

.serv-style4 .item:hover p {
    color: inherit !important;
}

.serv-style4 .item.bg-light:hover p {
    color: #4e4b4b !important;
}

/* Force dark text on bg-light items for mobile since hover doesn't exist */
@media (max-width: 768px) {

    .serv-style4 .item.bg-light,
    .stackCard .item.bg-light {
        color: #1f1f1f !important;
    }

    .serv-style4 .item.bg-light p,
    .stackCard .item.bg-light p {
        color: #4e4b4b !important;
    }
}

/* Reduce height of contract cards */
.serv-style4 .item {
    min-height: 260px !important;
    padding: 30px !important;
    /* Adjust padding for smaller height */
}

.serv-style4 .item .img {
    height: 70% !important;
    /* Adjust image size relative to new height */
    bottom: -20px !important;
    right: -20px !important;
}

/* Remove hover effect for accent-bg (Flexi Contracts) */
.serv-style4 .item.accent-bg:hover {
    background-color: var(--color-accent) !important;
    color: #000 !important;
    transform: none !important;
    /* Optional: stop movement if any */
}

.serv-style4 .item.accent-bg:hover p {
    color: rgba(0, 0, 0, 0.8) !important;
}

/* Prevent expanded cards from pushing content down */
/* Fix for Portfolio Accordion scaling & layout shift */
.portfolio-elegant .item {
    width: auto !important;
    flex: 1;
    transition: all 0.5s ease;
}

.portfolio-elegant .item.active,
.portfolio-elegant .item:hover {
    flex: 3;
    /* Expand the active/hovered item */
    width: auto !important;
}

.portfolio-elegant .item .bg-img {
    transition: transform 0.4s ease;
}

.portfolio-elegant .item:hover .bg-img {
    z-index: 10;
}

/* Ensure equal height cards for Software Design page */
.serv-style3 .fly-card {
    display: flex;
    flex-direction: column;
}

.serv-style3 .fly-card .item {
    width: 100%;
    height: 100%;
    min-height: unset !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.serv-style3 .fly-card .item h5 {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

/* ============================================
   Mobile Responsiveness Overrides
   ============================================ */

@media (max-width: 768px) {

    /* Typography Adjustments */
    .fs-80 {
        font-size: 42px !important;
        line-height: 1.1;
    }

    .fs-60 {
        font-size: 32px !important;
        line-height: 1.2;
    }

    .fs-40 {
        font-size: 26px !important;
    }

    .fs-20 {
        font-size: 16px !important;
        line-height: 1.6;
    }

    h1 {
        font-size: 42px !important;
    }

    h2 {
        font-size: 32px !important;
    }

    h3 {
        font-size: 26px !important;
    }

    /* Spacing Adjustments */
    section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .mb-80px {
        margin-bottom: 40px !important;
    }

    .md-mb80 {
        margin-bottom: 30px !important;
    }

    .mb-50px {
        margin-bottom: 30px !important;
    }

    .sm-mb30 {
        margin-bottom: 30px !important;
    }

    /* Hero Section Fixes */
    .pg-hero .row.mb-80px {
        margin-bottom: 20px !important;
    }

    /* Mobile text alignment */
    .text-align-right.md-mb80 {
        text-align: left !important;
        margin-bottom: 20px !important;
    }

    .text-align-right ul.rest li {
        display: inline-block;
        margin-right: 15px;
    }

    /* Image sizing fixes */
    .h-800px {
        height: 400px !important;
    }

    .h-700px {
        height: 350px !important;
    }

    .h-450px {
        height: 300px !important;
    }

    .h-850px {
        height: 400px !important;
        /* Fix for the hero image */
    }

    /* Card/Service Stacking Fixes */
    .serv-style2 .item {
        padding: 30px 20px !important;
        border-radius: 20px !important;
    }

    .serv-style2 .item .cont {
        padding: 0 !important;
    }

    .serv-style2 .item .mt-40px {
        margin-top: 20px !important;
    }

    /* Store buttons sizing */
    .h-100px {
        height: 60px !important;
        width: auto;
    }

    .mt-80px {
        margin-top: 40px !important;
    }

    /* Footer/CTA adjustments */
    .fo-box-left h2 {
        font-size: 34px !important;
    }

    /* Ensure container padding */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Stack Cards Mobile Layout Fix (App Dev) */
    .stackCard .item {
        flex-direction: column !important;
        padding: 30px 20px !important;
        height: auto !important;
    }

    .stackCard .col-lg-5 {
        width: 100% !important;
        margin-bottom: 30px;
    }

    .stackCard .fit-img {
        height: 250px !important;
        width: 100% !important;
        border-radius: 20px;
    }

    /* Remove offset margin on mobile */
    .offset-lg-1 {
        margin-left: 0 !important;
    }

    /* Fix Contract Cards (Game Dev) */
    .fly-card {
        margin-bottom: 20px !important;
    }
}

/* ============================================
   More Mobile Layout Fixes
   ============================================ */
@media (max-width: 768px) {

    /* Fix 'Start your project' CTA section alignment */
    .fo-box-left .d-flex.align-items-center.justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px;
    }

    .fo-box-left h2 {
        font-size: 32px !important;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .fo-box-left .butn-arrow {
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
    }

    /* Reduce massive spacing in service cards */
    .mt-80px {
        margin-top: 30px !important;
    }

    .mb-80px {
        margin-bottom: 30px !important;
    }

    .mb-45px {
        margin-bottom: 20px !important;
    }

    /* Services Card styling adjustments */
    .serv-style3 .item,
    .serv-style4 .item {
        padding: 30px 20px !important;
        min-height: auto !important;
    }

    .serv-style3 .item i,
    .serv-style4 .item i {
        font-size: 50px !important;
        /* Scale down icons */
    }

    /* Center the 'Lets create something special' text area at bottom */
    .fo-box-left .d-flex.align-items-end.justify-content-between {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }

    .f-logo {
        margin-bottom: 15px !important;
        width: 120px !important;
    }

    /* General Typography/Spacing Cleanups */
    .fs-14 {
        font-size: 14px !important;
    }

    /* Ensure no horizontal overflow */
    body,
    html {
        overflow-x: hidden !important;
        width: 100%;
    }

    /* Fix App Development Gap */
    .h-750px {
        height: 400px !important;
    }

    .h-550px {
        height: 350px !important;
    }

    /* Fix Gem Genie sizing */
    .bg-img {
        background-size: cover !important;
        background-position: center !important;
    }
}

/* ============================================
   Mobile Fixes Round 2
   ============================================ */
@media (max-width: 768px) {

    /* 1. Home Page Footer & Layout Fix (Unpin the slider) */
    .parallax-slider-wrapper {
        position: relative !important;
        top: 0 !important;
        bottom: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding-top: 100px !important;
        /* Space for navbar */
    }

    .parallax-sliders,
    .parallax-slider-inner {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    .parallax-item {
        height: 400px !important;
        width: 100% !important;
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* 2. Software Design Gap Fix */
    .serv-style3 .item {
        margin-bottom: 30px !important;
    }

    /* 3. Gem Genie Text Cutoff Fix */
    .border-radius-80px {
        border-radius: 30px !important;
    }

    /* 4. App Dev / Platform Icons Visibility */
    .stackCard .fit-img {
        height: 250px !important;
        /* Ensure image has visibility */
        margin-top: 20px;
        border-radius: 20px;
        overflow: hidden;
    }

    .stackCard .col-lg-6 {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* Fix scrollable area on mobile */
    .app-dev-page,
    .game-dev-page {
        overflow-x: hidden;
    }
}

/* Final Gap Fix for Software Design Mobile */
@media (max-width: 768px) {
    .serv-style3 .item {
        margin-bottom: 50px !important;
    }
}

/* Image Credit Overlay */
.position-re {
    position: relative !important;
}

.img-credit-overlay {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.credit-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: opacity 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credit-link:hover {
    opacity: 0.8;
}

.credit-separator {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile responsive for overlay */
@media (max-width: 768px) {
    .img-credit-overlay {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.4);
        /* Darker on mobile for readability */
    }

    .credit-separator {
        display: none;
    }

    .credit-link {
        font-size: 11px;
    }
}