/* application-style.css - DARK THEME */

.app-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 60px 24px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.app-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(105, 178, 84, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.app-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1140px;
    width: 100%;
    gap: 48px;
    margin-bottom: 40px;
    text-align: left;
    box-sizing: border-box;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.app-intro {
    flex: 1 1 380px;
    min-width: 300px;
    text-align: left;
}

.app-intro h1 {
    font-size: clamp(2rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.25;
    margin-bottom: 20px;
}

.app-intro p {
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    font-weight: 400;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.app-image {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 220px;
}

.app-image img {
    width: 100%;
    max-width: 440px;
    min-width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-image img:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(105, 178, 84, 0.4);
}

/* FEATURE SECTIONS - DARK THEME */
.feature-section {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    margin: 32px auto;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    max-width: 980px;
    width: calc(100% - 48px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Top accent line */
.feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #69B254 0%, #7bc463 100%);
}

.feature-section:hover {
    box-shadow: 0 12px 36px rgba(105, 178, 84, 0.3);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(105, 178, 84, 0.2);
}

.feature-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 32px;
    box-sizing: border-box;
}

.text-content {
    flex: 1 1 320px;
    text-align: left;
    box-sizing: border-box;
}

.text-content h2 {
    color: #7bc463;
    font-size: clamp(1.4rem, 3vw, 1.65rem);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.text-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1.05rem, 2vw, 1.15rem);
    line-height: 1.65;
    margin-bottom: 0;
}

.image-container {
    flex: 1 1 220px;
    text-align: center;
}

.feature-image {
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(105, 178, 84, 0.4);
}

/* DOWNLOAD SECTION - IMPROVED */
.app-download {
    display: flex;
    gap: 28px;
    margin: 48px auto 32px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.app-download-link {
    display: inline-block;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 8px;
    position: relative;
}

.app-download-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #69B254 0%, #7bc463 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-download-link:hover::before {
    opacity: 1;
}

.app-download-link:hover {
    transform: translateY(-6px) scale(1.05);
}

.app-download-icon {
    width: 160px;
    height: auto;
    transition: filter 0.3s ease;
}

.app-download-link:hover .app-download-icon {
    filter: brightness(1.1);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .app-content,
    .feature-section {
        max-width: 95%;
    }

    .feature-section {
        margin: 24px auto;
        width: calc(100% - 36px);
        padding: 44px 28px;
    }
}

@media (max-width: 992px) {
    .app-section {
        padding: 52px 20px;
    }

    .app-content,
    .feature-content,
    .feature-section {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        box-sizing: border-box;
    }

    .app-intro,
    .app-image,
    .text-content,
    .image-container {
        min-width: 0;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .feature-section {
        padding: 40px 24px;
        width: calc(100% - 32px);
    }

    .feature-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .app-section {
        padding: 40px 16px;
    }

    .app-content {
        gap: 32px;
        margin-bottom: 28px;
        padding: 0 16px;
    }

    .app-intro h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .app-intro p {
        font-size: 1.08rem;
        margin-top: 16px;
    }

    .feature-section {
        gap: 24px;
        margin: 20px auto;
        padding: 32px 20px;
        border-radius: 18px;
        width: calc(100% - 24px);
    }

    .feature-content {
        gap: 20px;
    }

    .text-content h2 {
        font-size: 1.35rem;
    }

    .text-content p {
        font-size: 1.08rem;
    }

    .app-download {
        gap: 20px;
        margin-top: 36px;
    }

    .app-download-icon {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .app-intro h1 {
        font-size: 1.6rem;
    }

    .app-intro p {
        font-size: 1.05rem;
    }

    .feature-section {
        padding: 28px 18px;
    }

    .feature-image {
        max-width: 240px;
    }

    .app-download-icon {
        width: 130px;
    }
}

@media (max-width: 360px) {
    .app-intro h1 {
        font-size: 1.5rem;
    }

    .app-intro p {
        font-size: 1.02rem;
    }

    .feature-section {
        padding: 24px 16px;
    }

    .text-content h2 {
        font-size: 1.28rem;
    }

    .text-content p {
        font-size: 1.05rem;
    }

    .feature-image {
        max-width: 220px;
    }

    .app-download-icon {
        width: 120px;
    }
}

/* ===== LANDSCAPE ORIENTATION OPTIMIZATIONS ===== */

/* Mobile Landscape - Side-by-Side Layout */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .app-section {
        padding: 44px 20px;
    }

    .app-content {
        flex-direction: row;
        gap: 32px;
        margin-bottom: 28px;
        padding: 0 20px;
    }

    .app-intro {
        flex: 1 1 50%;
        text-align: left;
    }

    .app-intro h1 {
        font-size: clamp(1.6rem, 3.5vw, 2rem);
    }

    .app-intro p {
        font-size: clamp(1rem, 1.8vw, 1.15rem);
        margin-top: 12px;
    }

    .app-image {
        flex: 1 1 40%;
    }

    .app-image img {
        max-width: 320px;
    }

    .feature-section {
        gap: 28px;
        margin: 24px auto;
        padding: 32px 24px;
        border-radius: 20px;
        width: calc(100% - 32px);
    }

    .feature-content {
        flex-direction: row;
        gap: 24px;
    }

    .text-content {
        flex: 1 1 55%;
        text-align: left;
    }

    .text-content h2 {
        font-size: clamp(1.25rem, 2.5vw, 1.5rem);
        margin-bottom: 12px;
    }

    .text-content p {
        font-size: clamp(1rem, 1.8vw, 1.1rem);
    }

    .image-container {
        flex: 1 1 35%;
    }

    .feature-image {
        max-width: 200px;
    }

    .app-download {
        gap: 20px;
        margin: 32px auto 24px;
    }

    .app-download-icon {
        width: 140px;
    }
}

/* Tablet Landscape - Optimized Layout */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .app-section {
        padding: 56px 24px;
    }

    .app-content {
        flex-direction: row;
        gap: 40px;
        margin-bottom: 36px;
    }

    .app-intro,
    .text-content {
        text-align: left;
    }

    .feature-section {
        flex-direction: row;
        padding: 40px 28px;
    }

    .feature-content {
        flex-direction: row;
    }

    .app-download {
        gap: 24px;
        margin: 40px auto 28px;
    }
}

/* Very Small Phone Landscape - Compact Mode */
@media (max-width: 740px) and (max-height: 420px) and (orientation: landscape) {
    .app-section {
        padding: 36px 16px;
    }

    .app-content {
        gap: 24px;
        margin-bottom: 24px;
        padding: 0 16px;
    }

    .app-intro h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .app-intro p {
        font-size: 0.95rem;
        margin-top: 10px;
    }

    .app-image img {
        max-width: 260px;
    }

    .feature-section {
        gap: 20px;
        margin: 20px auto;
        padding: 24px 20px;
        border-radius: 16px;
        width: calc(100% - 24px);
    }

    .feature-content {
        gap: 18px;
    }

    .text-content h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .text-content p {
        font-size: 0.95rem;
    }

    .feature-image {
        max-width: 180px;
    }

    .app-download {
        gap: 16px;
        margin: 28px auto 20px;
    }

    .app-download-icon {
        width: 120px;
    }
}