/* ===================================
   APPS PAGE STYLES
   =================================== */

.apps-main {
    padding-top: 100px;
    min-height: 100vh;
}

/* Background Abstract Blobs (similar to about.html) */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.3;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6a11cb 0%, #2575fc 100%);
    top: -20%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff0080 0%, #ff8c00 100%);
    bottom: -10%;
    right: -5%;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00f2fe 0%, #4facfe 100%);
    top: 30%;
    right: 20%;
}

.apps-hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.hero-content .title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #b366ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.apps-grid-section {
    padding: 4rem 2rem 8rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.apps-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.app-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.app-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone Mockup in App Card */
.app-card .phone-frame {
    width: 240px;
    height: 490px;
    border-radius: 35px;
}

/* Desktop Mockup */
.desktop-mockup {
    width: 100%;
    max-width: 500px;
}

.desktop-frame {
    background: #111;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.desktop-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.app-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(139, 61, 255, 0.15);
    color: #b366ff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.app-details h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
}

.app-details p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.app-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.app-features li {
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-download {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(90deg, #ff4c8b 0%, #ff7baf 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    width: fit-content;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 76, 139, 0.5);
}

/* Dropdown Styles */
.download-dropdown-wrapper {
    position: relative;
    width: fit-content;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 200px;
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 10px 15px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.main-footer {
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .app-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 2rem;
    }
    
    .app-visual {
        order: 2;
    }
    
    .app-details {
        order: 1;
        align-items: center;
    }
    
    .btn-download {
        width: 100%;
        max-width: 300px;
    }

    .download-dropdown-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-content .title {
        font-size: 2.5rem;
    }
    
    .app-details h2 {
        font-size: 2rem;
    }
}
