.navigation-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #2a3a4d 0%, #1a252f 100%);
    color: #c4d4e8;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    border: 1px solid #3a4a5d;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.25s ease;
}

.nav-btn:nth-child(1)::after { background: linear-gradient(180deg, #4a9eff, #2a5a9f); }
.nav-btn:nth-child(2)::after { background: linear-gradient(180deg, #ff6b4a, #9f3a2a); }
.nav-btn:nth-child(3)::after { background: linear-gradient(180deg, #ffd700, #9f8500); }
.nav-btn:nth-child(4)::after { background: linear-gradient(180deg, #4aff6b, #2a9f3a); }

.nav-btn:hover {
    background: linear-gradient(180deg, #3a4a5d 0%, #2a3540 100%);
    border-color: #4a6a8d;
    color: #fff;
    transform: translateX(4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.5);
}

.nav-btn:hover::after {
    width: 6px;
    box-shadow: 0 0 15px currentColor;
}

.nav-btn:nth-child(1):hover { border-color: rgba(74, 158, 255, 0.5); }
.nav-btn:nth-child(2):hover { border-color: rgba(255, 107, 74, 0.5); }
.nav-btn:nth-child(3):hover { border-color: rgba(255, 215, 0, 0.5); }
.nav-btn:nth-child(4):hover { border-color: rgba(74, 255, 107, 0.5); }

.nav-btn:active {
    transform: translateX(2px);
}

.nav-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.25s ease;
}

.nav-btn:hover svg {
    opacity: 1;
}

.nav-btn:nth-child(1):hover svg { color: #4a9eff; }
.nav-btn:nth-child(3):hover svg { color: #ffd700; }
.nav-btn:nth-child(2):hover svg { color: #ff6b4a; }
.nav-btn:nth-child(4):hover svg { color: #4aff6b; }

.welcome-section {
    position: relative;
    background: linear-gradient(180deg, #2a3a4d 0%, #1a252f 100%);
    border: 1px solid #3a4a5d;
    border-left: 4px solid #ffd700;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.4);
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #ffd700, transparent 50%);
}

.welcome-section h2 {
    color: #ffd700;
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.welcome-section p {
    color: #a0b0c4;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.welcome-highlight {
    color: #4a9eff;
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 0 !important;
    padding-left: 15px;
    border-left: 5px solid #4a9eff;
    margin-top: 15px;
}

.tools-title {
    color: #ffd700;
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apps-section {
    position: relative;
    background: linear-gradient(180deg, #2a3a4d 0%, #1a252f 100%);
    border: 1px solid #3a4a5d;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.4);
}

.apps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.3), transparent);
}

.tools-grid-ios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    max-width: 100%;
}

.tool-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 10px;
    text-decoration: none;
}

.tool-icon-card:active {
    transform: scale(0.95);
}

.tool-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #2a3a4d 0%, #1a2530 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.tool-icon-card:hover .tool-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(74, 158, 255, 0.5);
}

.tool-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon-svg {
    color: #4a9eff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.tool-icon-name {
    color: #c4d4e8;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    max-width: 100px;
}

.tool-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.tool-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-modal-content {
    background: linear-gradient(180deg, #2a3a4d 0%, #1a252f 100%);
    border: 1px solid #3a4a5d;
    border-radius: 16px;
    padding: 40px 30px 30px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s ease;
}

.tool-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #c4d4e8;
    transition: all 0.2s ease;
}

.tool-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.tool-modal-close:active {
    transform: scale(0.95);
}

.tool-modal-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.tool-modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-modal-title {
    color: #ffd700;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.tool-modal-description {
    color: #a0b0c4;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 25px;
}

.tool-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4a9eff 0%, #3d7dd9 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.tool-modal-btn:hover {
    background: linear-gradient(135deg, #3d8ae5 0%, #2d6cc7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 158, 255, 0.4);
}

.tool-modal-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .navigation-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-btn {
        padding: 14px 18px;
        font-size: 15px;
    }

    .welcome-section {
        padding: 20px;
    }

    .welcome-section h2 {
        font-size: 22px;
    }

    .welcome-section p {
        font-size: 15px;
    }

    .welcome-highlight {
        font-size: 16px;
    }

    .apps-section {
        padding: 20px;
    }

    .tools-grid-ios {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .tool-icon-wrapper {
        width: 70px;
        height: 70px;
        border-radius: 16px;
    }

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

    .tool-icon-name {
        font-size: 12px;
        max-width: 80px;
    }

    .tool-modal-content {
        padding: 35px 20px 20px;
        border-radius: 20px;
    }

    .tool-modal-icon {
        width: 90px;
        height: 90px;
        border-radius: 20px;
    }

    .tool-modal-title {
        font-size: 20px;
    }

    .tool-modal-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tools-grid-ios {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .tool-icon-wrapper {
        width: 65px;
        height: 65px;
    }

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

    .tool-icon-name {
        font-size: 11px;
        max-width: 70px;
    }
}
