/* Apps Section */
.apps-section {
    margin-bottom: 40px;
}

.apps-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    color: var(--text-primary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* App Card */
.app-card {
    background: var(--overview-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    outline: none;
    border: none;
    color: white;
}

body.dark-theme .app-card {
    background: var(--overview-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.app-card:not(.coming-soon):hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body.dark-theme .app-card:not(.coming-soon):hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.app-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

.app-header {
    text-align: center;
    margin-bottom: 20px;
    pointer-events: none;
}

.app-icon-small {
    width: 250px;
    height: 250px;
    border-radius: 24px;
    object-fit: cover;
    outline: none;
    border: none;
}

.app-icon-placeholder {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    color: white;
}

body.dark-theme .app-icon-placeholder {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.app-icon-placeholder svg {
    width: 45px;
    height: 45px;
}

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

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: white;
}

.app-category {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.app-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.app-more-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

body.dark-theme .app-more-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.app-more-btn:hover:not(.disabled) {
    transform: translateX(4px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.app-more-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.app-more-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.app-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.platforms-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.buttons-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.release-notes-btn {
    margin-top: 0 !important;
}

.app-footer .platform-icon {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    min-width: 24px;
    min-height: 24px;
    object-fit: contain;
}

/* App Modal */
.app-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    overflow: hidden;
    animation: slideInUp 0.4s ease;
}

body.dark-theme .app-modal {
    background: #0f172a;
}

body.modal-active {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

.app-modal.active {
    display: block;
}

.app-modal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    background: transparent;
    border-bottom: none;
    z-index: 1001;
    pointer-events: none;
}

.app-modal-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    padding-top: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: text;
    user-select: text;
    display: block;
    width: 100%;
    height: 100%;
}

body.dark-theme .app-modal-header {
    background: transparent;
    border-bottom: none;
}

.app-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .app-modal-header {
    background: transparent;
    border-bottom: none;
}

.app-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.app-modal-close:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.7);
}

.app-modal-close svg {
    width: 24px;
    height: 24px;
}

.app-modal-content .container {
    max-width: 100%;
    padding: 40px 20px;
    width: 100%;
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .apps-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .app-card {
        padding: 24px;
    }

    .app-icon-small {
        width: 200px;
        height: 200px;
    }

    .app-card h3 {
        font-size: 1.3rem;
    }

    .app-description {
        font-size: 0.9rem;
    }

    .app-modal-header {
        padding: 15px;
    }

    .app-modal-close {
        width: 36px;
        height: 36px;
    }

    .app-modal-content {
        padding: 0;
        padding-top: 70px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: 100%;
    }

    .app-modal-content .container {
        padding: 20px 15px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .apps-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .apps-grid {
        gap: 15px;
    }

    .app-card {
        padding: 18px;
    }

    .app-icon-small {
        width: 160px;
        height: 160px;
    }

    .app-card h3 {
        font-size: 1.2rem;
    }

    .app-description {
        font-size: 0.85rem;
    }

    .app-more-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Developer Section */
.developer-section {
    margin-bottom: 20px;
}

.developer-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    color: var(--text-primary);
}

.developer-content {
    background: var(--overview-bg);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

body.dark-theme .developer-content {
    background: var(--overview-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.developer-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.developer-image-container h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 20px;
    color: white;
    text-align: center;
    width: 100%;
}

.developer-image-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

body.dark-theme .developer-image-placeholder {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.developer-image-placeholder::before {
    content: '';
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #667eea 0deg,
        #764ba2 90deg,
        #f093fb 180deg,
        #4facfe 270deg,
        #667eea 360deg
    );
    z-index: -1;
    top: -10px;
    left: -10px;
}

body.dark-theme .developer-image-placeholder::before {
    background: conic-gradient(
        from 0deg,
        #3b82f6 0deg,
        #8b5cf6 90deg,
        #ec4899 180deg,
        #0ea5e9 270deg,
        #3b82f6 360deg
    );
}

.developer-image-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: 60% top;
}

.developer-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.developer-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 20px;
}

.developer-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
}

.developer-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-theme .skill-tag {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design for Developer Section */
@media (max-width: 1024px) {
    .developer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }

    .developer-image-container {
        order: -1;
    }

    .developer-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .developer-content {
        padding: 30px 20px;
        gap: 30px;
    }

    .developer-image-placeholder {
        width: 200px;
        height: 200px;
    }

    .developer-image-placeholder::before {
        width: 220px;
        height: 220px;
        top: -10px;
        left: -10px;
    }

    .developer-image-placeholder svg {
        width: 80px;
        height: 80px;
    }

    .developer-info h3 {
        font-size: 1.5rem;
    }

    .developer-bio {
        font-size: 0.95rem;
    }

    .developer-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .developer-content {
        padding: 20px 15px;
    }

    .developer-image-placeholder {
        width: 160px;
        height: 160px;
    }

    .developer-image-placeholder::before {
        width: 180px;
        height: 180px;
        top: -10px;
        left: -10px;
    }

    .developer-image-placeholder svg {
        width: 60px;
        height: 60px;
    }

    .developer-info h3 {
        font-size: 1.3rem;
    }

    .developer-title {
        font-size: 1rem;
    }

    .developer-bio {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .skill-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .developer-section h2 {
        font-size: 1.5rem;
    }
}

/* Support Section */
.support-section {
    margin: 0 0 40px;
    padding: 0 20px;
}

.support-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    color: var(--text-primary);
}

.support-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--overview-bg);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

body.dark-theme .support-container {
    background: var(--overview-bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.support-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.support-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    position: relative;
}

.coffee-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #667eea;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
}

body.dark-theme .coffee-button {
    background: white;
    color: #3b82f6;
}

.coffee-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.coffee-button:active {
    transform: translateY(-2px) scale(1.02);
}

.coffee-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Responsive Design for Support Section */
@media (max-width: 768px) {
    .support-section {
        margin: 40px 0 30px;
    }

    .support-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .support-container {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .support-description {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .coffee-button {
        padding: 14px 30px;
        font-size: 1rem;
        gap: 10px;
    }

    .coffee-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .support-section {
        margin: 30px 0 20px;
        padding: 0 15px;
    }

    .support-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .support-container {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .support-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .coffee-button {
        padding: 12px 24px;
        font-size: 0.95rem;
        gap: 8px;
    }

    .coffee-icon {
        width: 20px;
        height: 20px;
    }
}
