/* Apps Page Specific Styles */
body {
    background-color: #ffffff;
}

.apps-hero {
    position: relative;
    height: 621px;
    background-color: #000000;
    overflow: hidden;
}

.apps-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: top;
    justify-content: center;
    gap: 125px;
    height: 100%;
    padding: 0 80px;
    margin-top: 180px;
}

.apps-hero-text {
    flex: 1;
    max-width: 683px;
}

.apps-hero-title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 65px;
    color: #ffffff;
    margin-bottom: 32px;
}

.apps-hero-title .highlight-fu {
    color: #e76de5;
}

.apps-hero-title .highlight-bl {
    color: #80acf3;
}

.apps-hero-description {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: #ffffff;
    margin-bottom: 45px;
    max-width: 668px;
}

.apps-hero-description p {
    margin-bottom: 0;
}

.apps-hero-buttons {
    display: flex;
    gap: 24px;
}

.apps-hero-text {
    flex: 1;
    max-width: 761px;
}

.apps-hero-visual {
    flex: 1;
    max-width: 2547px;
    height: 1308px;
    position: relative;
}

.hero-laptop {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(3) translateY(2px) translateX(-20px);
    transform-origin: center;
}

.apps-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.apps-hero-ellipse {
    position: absolute;
    right: -330px;
    top: 50%;
    transform: translateY(-50%);
    width: 659px;
    height: 659px;
    background: url('http://localhost:3845/assets/a7fb790f0e73941beabb567b5aaff726fdec3ad9.svg') no-repeat center;
    background-size: contain;
}

/* Testimonial Section */
.apps-testimonial {
    position: relative;
    height: 857px;
    overflow: hidden;
    /* width: 1440px; */
    background: linear-gradient(to bottom, #000000 0%, #000000 60%, #ffffff 100%);
}

.apps-testimonial-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
    /* padding: 0 80px; */
    margin: 0 auto;
    width: 1440px;
    z-index: 2;
}

.testimonial-image {
    flex: 1;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.testimonial-content {
    flex: 1;
    /*background: rgba(0, 0, 0, 0.2);*/
    border-radius: 16px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* width: 600px; */
    height: 500px;
    justify-content: center;
}

.testimonial-quote {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 45px;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.3691px;
}

.testimonial-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 11px 21px;
    /* background: linear-gradient(90deg, #4b194a 0%, #000000 100%); */
    /* border: 1px solid #e76de5; */
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: #80acf3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon img {
    width: 16px;
    height: 16px;
}

/* Apps Container */
.apps-container {
    background-color: #000000;
    border-radius: 16px;
    padding: 40px;
    margin: 50px 0;
}

/* Apps Tabs */
.apps-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px 0;
}

.tab-button {
    flex: 1;
    height: 44px;
    /*border: none;*/
    border-radius: 16px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    border: 1px solid transparent;
    border-radius: 16px;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
      var(--inner-bg, linear-gradient(180deg, #435c85 0%, #000000 100%)),
      var(--border-gradient, linear-gradient(180deg, #80acf3 0%, #000000 100%));
    color: white;
}

.tab-button:not(.active) {
    border: 1px solid transparent;
    border-radius: 16px;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
      var(--inner-bg, linear-gradient(180deg, #292929 0%, #000000 100%)),
      var(--border-gradient, linear-gradient(180deg, #ffffff 0%, #000000 100%));
    color: white;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.app-card {
    /* background: linear-gradient(180deg, #292929 0%, #000000 100%); */
    /* border: 1px solid #e5e7eb; */
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.app-card.app-card-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.99);
}

.app-card.full-width {
    grid-column: span 3;
}

.app-card.full-width > .app-content {
    max-width: 387px; /* or whatever your 1-column card width is */
    width: 100%;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon.bg-blue { background: #6081B6; }
.app-icon.bg-green { background: #6E9A80; }
.app-icon.bg-purple { background: #893BB0; }
.app-icon.bg-orange { background: #DB8A34; }
.app-icon.bg-indigo { background: #615fff; }
.app-icon.bg-red { background: #fb2c36; }
.app-icon.bg-teal { background: #00bba7; }
.app-icon.bg-pink { background: #E76DE5; }

.app-icon img {
    width: 32px;
    height: 32px;
}

.app-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* gap: 24px; */
}

.app-title {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: white;
    /* margin: 0; */
}

.app-subtitle {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #80acf3;
    margin: 0;
}

.app-description {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: white;
    margin-top: 24px;
}

.app-price {
    margin-top: auto;
    padding-top: 24px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: white;
    line-height: 1.5;
}

.app-price strong {
    color: #80acf3;
}

.app-button {
    /* background: linear-gradient(180deg, #292929 0%, #000000 100%); */    
    /* border: 1px solid #e5e7eb; */
    border-radius: 8px;
    padding: 10px;
    color: white;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    width: 120px;
}

/* App Showcase */
.app-showcase {
    /* background: linear-gradient(180deg, #292929 0%, #000000 100%); */
    /* border: 1px solid #e5e7eb; */
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    /* height: 312px; */
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.app-showcase.app-showcase-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.99);
}

/* No Apps Message */
.apps-no-results {
    text-align: center;
    padding: 60px 20px;
    margin: 40px 0;
}

.no-apps-message {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.showcase-content {
    display: flex;
    flex-direction: column;
    /*gap: 24px;*/
    flex: 1;
}

.showcase-info {
    flex: 1;
}

.showcase-demo {
    display: flex;
    flex-direction: column;
    /*gap: 24px;*/
    flex: 2;
    align-items: flex-start;
}

.showcase-demo img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.demo-window {
    background: white;
    border-radius: 13.706px;
    box-shadow: 0px 1.371px 4.112px 0px rgba(0,0,0,0.1), 0px 1.371px 2.741px -1.371px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
    width: 80%;
}

.window-header {
    background: #f3f4f6;
    height: 27.412px;
    display: flex;
    align-items: center;
    padding: 0 17.258px;
}

.window-controls {
    display: flex;
    gap: 5.748px;
}

.control-dot {
    width: 11.51px;
    height: 11.51px;
    border-radius: 50%;
}

.control-dot.red { background: #ff6467; }
.control-dot.yellow { background: #fdc700; }
.control-dot.green { background: #05df72; }

.window-content {
    padding: 23.02px;
    height: calc(100% - 27.412px);
}

.demo-content {
    display: flex;
    flex-direction: column;
    gap: 17.258px;
}

.content-line {
    background: #f3f4f6;
    height: 17.258px;
    border-radius: 5.482px;
    width: 100%;
}

.content-line.short {
    width: 70%;
}

/* App Features */
.app-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 20px;
}

.app-feature {
    /* background: linear-gradient(180deg, #292929 0%, #000000 100%); */
    /* border: 1px solid #e5e7eb; */
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.app-feature-icon img {
    width: 48px;
    height: 48px;
}

.app-feature-title {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
    margin: 0;
}

.app-feature-description {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: white;
    margin: 0;
}

/* Portal Comparison */
.portal-comparison-container {
    border: 1px solid #c0bfbf;
    border-radius: 16px;
    padding: 40px;
}

.portal-options {
    display: flex;
    align-items: stretch;
    gap: 40px;
    margin-bottom: 50px;
}

.portal-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.portal-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portal-title {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #0a0a0a;
    margin: 0;
}

.portal-subtitle {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: black;
    margin: 0;
}

.portal-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 12px;
}

.portal-feature {
    background: #F2F7FE;
    border-radius: 16px;
    padding: 20px;
    height: 150px;
}

.portal-feature-icon {
    width: 40px;
    /* height: 40px; */
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-bottom: 10px;
}

.portal-feature-icon img {
    width: 40px;
    height: 40px;
}

.portal-feature span {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: black;
    display: block;
    /* width: 75%; */
}

.custom-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.icon-bar {
    height: 4px;
    border-radius: 2px;
}

.icon-bar.blue { background: #80acf3; }
.icon-bar.pink { background: #e76de5; }

.portal-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.portal-footer-text {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #4a5565;
    margin: 0;
    flex: 1;
}

.portal-cta-button {
    background: linear-gradient(90deg, #80acf3 0%, #e76de5 100%);
    border: none;
    border-radius: 16px;
    padding: 24px;
    color: white;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    
    gap: 20px;
    white-space: nowrap;
}

.portal-cta-button img {
    width: 32px;
    height: 32px;
}



/* Documentation Section Styles */
.documentation-section {
    padding: 100px 0;
}

.documentation-container {
    max-width: 1440px;
    margin: 0 auto;
    /* padding: 0 80px; */
}

.documentation-header {
    margin-bottom: 50px;
}

.documentation-title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 48px;
    color: #101828;
    margin: 0 0 23px 0;
    letter-spacing: 0.35px;
}

.documentation-description {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: #4a5565;
    margin: 0;
    letter-spacing: -0.45px;
}

.documentation-cards {
    display: flex;
    gap: 20px;
}

.resource-card {
    flex: 1;
    background: #f2f7fe;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.resource-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon img {
    width: 40px;
    height: 40px;
}

.resource-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #0f172a;
    margin: 0;
}

.resource-subtitle {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: #80acf3;
    margin: 0;
}

.resource-description {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #364153;
    margin-top: 23px;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .apps-hero {
        height: auto;
        min-height: 500px;
    }
    
    .apps-hero-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 40px;
        margin-top: 140px;
        padding-bottom: 40px;
    }
    
    .apps-hero-text {
        max-width: 100%;
    }
    
    .apps-hero-title {
        font-size: 42px;
        line-height: 48px;
    }
    
    .apps-hero-description {
        font-size: 18px;
    }
    
    .apps-hero-visual {
        max-width: 100%;
        height: 300px;
    }
    
    .apps-testimonial {
        height: auto;
        min-height: 600px;
    }
    
    .apps-testimonial-container {
        flex-direction: column;
        width: 100%;
        padding: 40px 20px;
        gap: 30px;
    }
    
    .testimonial-image {
        height: 300px;
        width: 100%;
    }
    
    .testimonial-content {
        height: auto;
        padding: 30px;
        gap: 30px;
    }
    
    .testimonial-quote {
        font-size: 28px;
        line-height: 34px;
    }
    
    .apps-container {
        padding: 30px 20px;
        margin: 30px 20px;
    }
    
    .apps-tabs {
        flex-direction: column;
        gap: 12px;
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-card.full-width {
        grid-column: span 2;
    }
    
    .app-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .documentation-cards {
        flex-direction: column;
    }
    
    .portal-options {
        flex-direction: column;
        gap: 30px;
    }
    
    .portal-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .apps-hero {
        height: auto;
        min-height: 400px;
    }
    
    .apps-hero-content {
        padding: 0 20px;
        margin-top: 100px;
        padding-bottom: 30px;
    }
    
    .apps-hero-title {
        font-size: 32px;
        line-height: 38px;
        margin-bottom: 20px;
    }
    
    .apps-hero-description {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 30px;
    }
    
    .apps-hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .apps-hero-visual {
        height: 250px;
    }
    
    .apps-testimonial {
        height: auto;
        min-height: 500px;
    }
    
    .apps-testimonial-container {
        padding: 30px 20px;
    }
    
    .testimonial-image {
        height: 250px;
    }
    
    .testimonial-content {
        padding: 24px;
        gap: 24px;
    }
    
    .testimonial-quote {
        font-size: 24px;
        line-height: 30px;
    }
    
    .feature-item {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .apps-container {
        padding: 24px 16px;
        margin: 20px 10px;
        border-radius: 12px;
    }
    
    .apps-tabs {
        padding: 16px 0;
    }
    
    .tab-button {
        font-size: 16px;
        height: 40px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .app-card.full-width {
        grid-column: span 1;
    }
    
    .app-card {
        padding: 20px;
    }
    
    .app-showcase {
        flex-direction: column;
        height: auto;
        min-height: 300px;
        padding: 20px;
    }
    
    .showcase-demo {
        width: 100%;
    }
    
    .demo-window {
        width: 100%;
    }
    
    .app-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .app-feature {
        padding: 24px;
    }
    
    .portal-comparison-container {
        padding: 24px;
    }
    
    .portal-options {
        gap: 24px;
    }
    
    .portal-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .portal-cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .documentation-section {
        padding: 60px 0;
    }
    
    .documentation-container {
        padding: 0 20px;
    }
    
    .documentation-title {
        font-size: 32px;
        line-height: 38px;
    }
    
    .documentation-description {
        font-size: 18px;
    }
    
    .documentation-cards {
        flex-direction: column;
        gap: 20px;
    }
    
    .resource-card {
        padding: 30px;
    }
}
